Board index » delphi » Building a web server.
Colin Dawson
![]() Delphi Developer |
Tue, 01 Jun 2004 18:38:56 GMT
|
Colin Dawson
![]() Delphi Developer |
Tue, 01 Jun 2004 18:38:56 GMT
Building a web server.
I'm trying to implement support for CGI applications on a web server that
I'm writing. I was wondering if anyone has an example of how to call a CGI.exe that's Thanks in advance Colin. |
Maarten Wiltin
![]() Delphi Developer |
Tue, 01 Jun 2004 19:09:06 GMT
Re:Building a web server.QuoteColin Dawson wrote in message ... IIANM, and you should definitely not take my word for it, Groetjes, |
Colin Dawso
![]() Delphi Developer |
Tue, 01 Jun 2004 19:18:30 GMT
Re:Building a web server.Quote"Maarten Wiltink" <maar...@kittensandcats.net> wrote in message Quote> Colin Dawson wrote in message ... spec? Don't forget, I'm writing a web server and want to call web apps. Regards Colin. |
Maarten Wiltin
![]() Delphi Developer |
Tue, 01 Jun 2004 20:22:34 GMT
Re:Building a web server.QuoteColin Dawson wrote in message ... web server I experimented with appeared to do. Groetjes, |
Colin Dawso
![]() Delphi Developer |
Tue, 01 Jun 2004 20:38:57 GMT
Re:Building a web server.Quote> I'm trying to implement support for CGI applications on a web server that Spec, and I'm started to ready through it. You'll find it at..... http://hoohoo.ncsa.uiuc.edu/cgi/interface.html I'm trying to write a program that will call the CGI programs. My web Regards Colin Dawson. |
J Fren
![]() Delphi Developer |
Tue, 01 Jun 2004 21:45:37 GMT
Re:Building a web server.Kicking off an EXE then pumping data in via the StdIn and getting the response via StdOut is only one way of skinning a cat. Given that you have written a Webserver, you might think about The whole idea of kicking off an EXE, letting it crank itself up, do a However to do it you need to use : CreatePipe If you are trying to add full functionality to your Webserver then you On Fri, 14 Dec 2001 12:38:57 -0000, "Colin Dawson" Quote<N...@cdawson.tele2.co.uk> wrote: |
Maarten Wiltin
![]() Delphi Developer |
Tue, 01 Jun 2004 22:04:27 GMT
Re:Building a web server.QuoteColin Dawson wrote in message ... how a SERVER is expected to work from the way another SERVER reacted to a CGI request. So in my case it was to build a CLIENT... I was trying to find out the INTERFACE. CreateProcess lets you specify a StartupInfo struct (I think it was) Groetjes, |
Colin Dawso
![]() Delphi Developer |
Tue, 01 Jun 2004 22:49:34 GMT
Re:Building a web server.ah, I see. I'll have a go at trying to implement this over the weekend. I was actually I'll let you know how I get on. Thanks for the pointer. Colin. Quote"J French" <je...@iss.u-net.com> wrote in message Quote> Kicking off an EXE then pumping data in via the StdIn and getting the |
J Fren
![]() Delphi Developer |
Wed, 02 Jun 2004 00:20:10 GMT
Re:Building a web server.IMO CGI is a waste of space - unless one is writing to a spec. Any half decent Webserver is going to be up, alive and waiting for Bear in mind that extended GETs and pretty well all POSTs are The word 'delegation' comes to mind. I shall be curious to hear what you come up with - my last excursion IMO have a separate App that runs CGI - PostMessage will avoid On Fri, 14 Dec 2001 14:49:34 -0000, "Colin Dawson" Quote<n...@cdawson.tele2.co.uk> wrote: |
Sundial Service
![]() Delphi Developer |
Wed, 02 Jun 2004 01:01:07 GMT
Re:Building a web server.Usually, people simply pick up a server like (open-source) Apache and use Delphi to create modules to go with it .. or services that those modules can connect-to and use. For instance, I once consulted for a company that uses Apache to drive A similar process could be build using ISAPI of course but that requires In any case, the program you're using is not usually created as an EXE, Quote>Colin Dawson wrote: Sundial Services :: Scottsdale, AZ (USA) :: (480) 946-8259 mailto:i...@sundialservices.com (PGP public key available.) Quote> Fast(!), automatic table-repair with two clicks of the mouse! |
Colin Dawso
![]() Delphi Developer |
Sat, 05 Jun 2004 20:00:06 GMT
Re:Building a web server.Quote> IMO CGI is a waste of space - unless one is writing to a spec. space, it loads a whole new exe for every single call! Quote> Any half decent Webserver is going to be up, alive and waiting for Quote> Bear in mind that extended GETs and pretty well all POSTs are Quote> The word 'delegation' comes to mind. Quote> I shall be curious to hear what you come up with - my last excursion difficulty with other types on content. Quote> IMO have a separate App that runs CGI - PostMessage will avoid Regards Colin Dawson. |
J Fren
![]() Delphi Developer |
Sun, 06 Jun 2004 00:01:13 GMT
Re:Building a web server.On Tue, 18 Dec 2001 12:00:06 -0000, "Colin Dawson" Quote<n...@cdawson.tele2.co.uk> wrote: bit that handles TCP/IP QuoteSometimes I reckon that programming is prostitution - sometimes I get The main thing is to totally divorce the *real* webserver from any of Personally, if I had to jump through this hoop again, I would put the 'Good fences make good neighbours' |
Shahzad Lat
![]() Delphi Developer |
Fri, 11 Jun 2004 07:54:50 GMT
Re:Building a web server.1) Create a web server application (stand alone CGI applicaiton) 2) Right click on the form and get to action editor 3) Add an action with a proper pathinfo (say func1) 4) Create exe say abc.exe 5) PLace exe in your wwwroot (eg) 6) Give execute permissions to your exe 7) Call func1 using eg http://domain.com/abc.exe/func1 8) Calling the exe from a webpage, you can post any parameters and retrieve them in func1 using request object. You can use response object to move further. Shahzad |
1. Someone used Web report server in web application (Wich is the report VCL for web service)
2. Windows Service as Web Broker web server application
3. ATTN: Apollo/Vista Software web site down (being re-built)
4. TechTips: Building web-applications for a *LOT* of users
5. Anyone in here know how to build web pages with Delphi 5
6. WANTED: Developer to Build Web Site Management Tool
7. About to build a web spider
8. Looking for insight on web apps built with Delphi