 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible wrote:
> I want to write a large, complex CGI program.
>
> However, I do *not* feel like installing and configuring Apache just so
> I can run my CGI program.
>
> Does *anybody* know of a nice, simple little program that will accept
> HTTP requests and pass them to my CGI program? All I really want is a
> tiny little program to parse the HTTP headers, feed them into my CGI
> program, and pass back the answers to the web browser. But I can't seem
> to find anything that will do that... All I can find is full-featured
> web servers that you have to install and configure. I just want a
> single-file executable... Anybody know of one?
In KDE, in any kioslaves-enabled application (like the Konqueror browser),
you can use cgi:/home/invisible/mycgiapp as a URL and it will just work :)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> Yeah. He wants a web server without installing a web server.
And I got one. Yay for me! :-)
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Orchid XP v8 a écrit :
> Orchid XP v8 wrote:
>
>> 2. It seems to be able to run CGI *scripts*, but not compiled,
>> executable binary programs. I'm still frobbing the configuration file,
>> but it's not looking good...
>
> OK, *finally*...
>
> Create a small file called Foo.cgi that simply contains the line
>
> #!Foo.exe
>
> and *at last* the server does what I want it to!
>
Apparently this server only checks the extensions of the files, so you
could just rename Foo.exe to Foo.cgi I suppose. Or better still, launch
shttpd with the appropriate option telling it that .exe are CGI files:
shttpd -cgi_ext "exe"
Seems to work on my linux box with any arbitrary extension...
--
Vincent
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>> OK, *finally*...
>>
>> Create a small file called Foo.cgi that simply contains the line
>>
>> #!Foo.exe
>>
>> and *at last* the server does what I want it to!
>>
> Apparently this server only checks the extensions of the files, so you
> could just rename Foo.exe to Foo.cgi I suppose.
I tried that, but it doesn't work. If it's .cgi, it "checks the first
line of text to determine what interpretter to run".
> Or better still, launch
> shttpd with the appropriate option telling it that .exe are CGI files:
>
> shttpd -cgi_ext "exe"
Also tried that and it didn't work.
The hack above does, however, work.
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Orchid XP v8 <voi### [at] dev null> wrote:
> Warp wrote:
> > Yeah. He wants a web server without installing a web server.
> And I got one. Yay for me! :-)
You got a web server and you didn't install it? How can that work?
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Orchid XP v8 a écrit :
>> Or better still, launch shttpd with the appropriate option telling it
>> that .exe are CGI files:
>>
>> shttpd -cgi_ext "exe"
>
> Also tried that and it didn't work.
>
> The hack above does, however, work.
>
OK, so that's one more reason for me to keep running Linux I guess,
where it works fine and starts instantaneously :-)
Maybe you should throw a note to the author though, perhaps the
behaviour on Windows is not what's intended...
--
Vincent
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> You got a web server and you didn't install it? How can that work?
You put the executable file in a directory, double-click it, and it
runs. Nothing to install, nothing to uninstall afterwards. And only a
few hundred KB too. Which is basically what I was looking for...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Orchid XP v8 wrote:
> Warp wrote:
>
>> You got a web server and you didn't install it? How can that work?
>
> You put the executable file in a directory, double-click it, and it
> runs. Nothing to install, nothing to uninstall afterwards. And only a
> few hundred KB too. Which is basically what I was looking for...
>
So you've installed it. OTOH you haven't needed to configure it or your
system.
John
--
"Eppur si muove" - Galileo Galilei
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Orchid XP v8 <voi### [at] dev null> wrote:
> Warp wrote:
> > You got a web server and you didn't install it? How can that work?
> You put the executable file in a directory, double-click it, and it
> runs. Nothing to install, nothing to uninstall afterwards. And only a
> few hundred KB too. Which is basically what I was looking for...
We clearly have completely different definitions of "installing a
program".
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp wrote:
> We clearly have completely different definitions of "installing a
> program".
Yes.
To me, if you can use a program just by running it, that's not
"installing" it.
If, however, you have to insert DLLs into particular folders, create
registry keys and configure environment variables, that's "installing"
something.
The former means you can just drop the binary only (say) a USB flash
drive and use it anywhere. The latter means that you have to do some
setup (and probably removal) at every PC.
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |