🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
4 messages
4 total messages Started by Lee Fri, 25 Nov 2005 15:57
Apache API webserver Creation
#891
Author: Lee
Date: Fri, 25 Nov 2005 15:57
28 lines
2330 bytes
Hi all,

I would like to know if something I would like to do is possible.  I want to 
turn an existing small application into a webserver using the Apache API - 
is this feasable?

I am using Builder 6 to develop a small app that currently has http server 
ability, but this needs upgrading as https needs supporting, as well as 
various other bits and bobs.  The initial intention was to use a WeOnlyDo 
http server component, or the MBed http server library.  However, the 
WeOnlyDo component is limited to Windows only, and the MBed component is 
somewhat expensive.

I want to know if it's possible to create a stand alone web server using the 
Apache API rather than another component or library.  If I can do this then 
it's cheap, powerful, and plaform independent.  I also don't really want to 
start ripping bits of Apache code out of the source and pasting them into 
Builder classes, and I don't want to create an Apache module.

I can't find any documentation on this, which seems to indicate that you 
cannot do this, but can anyone confirm?

Many thanks.

Lee Colclough
Software Engineer
DataDialogs
lee@**spam**faulty-towers.com 
Re: Apache API webserver Creation
#899
Author: Hans Galema
Date: Wed, 30 Nov 2005 09:51
29 lines
2225 bytes
Lee wrote:

> ... I want to 
> turn an existing small application into a webserver using the Apache API - 
> is this feasable?

To make a webserver you need to create a TCP/IP server that listens on -default-
port 80 and understands the HTTP protocol. You did not tell what kind
of things your application does now that could be used for the webserver too.
Nor did you tell why you think you need Apache API for creating a webserver. Well
I do not know Apache API so please explain.

> I am using Builder 6 to develop a small app that currently has http server 
> ability, but this needs upgrading as https needs supporting, 

How did you implement http ? Did you think of using TIdHTTP ? Don't know if
it supports https though.

> I want to know if it's possible to create a stand alone web server using the 
> Apache API rather than another component or library. 

You can create a webserver using just sockets instead of a component. You have
to implement the http protocol yourself then. What you have in mind with 'using
the Apache API' I don't know.

If you mean: using code from the Apache project. Yes you can do that if you
follow the rules.

Hans.
Re: Apache API webserver Creation
#900
Author: Lee
Date: Wed, 30 Nov 2005 10:07
45 lines
3005 bytes
"Hans Galema" <notused@notused.nl> wrote in message 
news:438d7645$1@newsgroups.borland.com...
> Lee wrote:
>
> To make a webserver you need to create a TCP/IP server that listens 
> on -default-
> port 80 and understands the HTTP protocol. You did not tell what kind
> of things your application does now that could be used for the webserver 
> too.
> Nor did you tell why you think you need Apache API for creating a 
> webserver. Well
> I do not know Apache API so please explain.
* My application acts like a normal webserver but parses the incoming http 
POST for certain command strings which it passes to other parts of my 
distributed app. I don't think I NEED Apache API to create a webserver, but 
I want ot know if the API can be used to simplify the process - look at it 
like this:  I can do 3D animation on the pc natively, but using the DirectX 
API makes it much easier.

> How did you implement http ? Did you think of using TIdHTTP ? Don't know 
> if
> it supports https though.
*  Can't use that - I need it to be cross platform so I can't use the VCL. 
I also don't want to use CLX as it's not supported anymore.

> You can create a webserver using just sockets instead of a component. You 
> have
> to implement the http protocol yourself then. What you have in mind with 
> 'using
> the Apache API' I don't know.
~ Yup, but it's much harder work, especially if you are using SSL too.

> If you mean: using code from the Apache project. Yes you can do that if 
> you
> follow the rules.
* True, but again I was trying to avoid that - because of how Apache works 
then extracting code will probably be just as much work as starting again.

As an aside, after further research, I think the Apache API isn't what I 
expected it to be - I think it's used purely for Apache module creation - 
can anyone confirm this?

> Hans.
Thanks,   Lee.
Re: Apache API webserver Creation
#901
Author: Hans Galema
Date: Wed, 30 Nov 2005 10:49
15 lines
1690 bytes
Lee wrote:

> * True, but again I was trying to avoid that - because of how Apache works 
> then extracting code will probably be just as much work as starting again.

If you could make the Apache project code compile in bcb then you only had
to /add/ your own code. Then after that you could remove not needed modules.

> As an aside, after further research, I think the Apache API isn't what I 
> expected it to be - I think it's used purely for Apache module creation - 
> can anyone confirm this?

Do /think/ that too.

Hans.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads