View previous topic :: View next topic |
Author |
Message |
mdoigny -
Joined: 24 May 2008 Posts: 16 Location: Oostende, Belgium
|
Posted: Mon Jul 07, 2008 7:40 pm Post subject: Remove ".exe" in url |
|
|
Is it possible to remove the ".exe" in calls to executables?
For instance the executable is /cgi/test.exe and it should be called with
http://xxx.yyy/cgi/test or http://xxx.yyy/cgi/test.htm
All executables (classic CGI) reside in the /cgi directory. _________________ Home server |
|
Back to top |
|
|
badai -
Joined: 24 Apr 2003 Posts: 82
|
Posted: Fri Jul 11, 2008 4:40 pm Post subject: |
|
|
without extension, how your server going to handle MIME Type?
or maybe you can do a little trick like changing it to other extension and set it in your server to handle that extension accordingly. |
|
Back to top |
|
|
mdoigny -
Joined: 24 May 2008 Posts: 16 Location: Oostende, Belgium
|
Posted: Fri Jul 11, 2008 4:57 pm Post subject: |
|
|
badai wrote: | without extension, how your server going to handle MIME Type?
|
Code: |
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: ...
|
I use NPH (non parsed headers) as response.
But some user agents insist on saving the file instead of displaying it, based on the extension. With Xitami (another web server) you could simply code
http://xxx.yyy/cgi-bin/test
and the server would look for anything executable in the cgi-bin directory (Xitami uses a "dir test.*" to determine the presence of files) _________________ Home server |
|
Back to top |
|
|
|