[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CGI "additional path information" (off-topic)



Sebastien Aperghis-Tramoni writes:
|    http://localhost/cgi-bin/mycgi.cgi/blah 
|will make the server search for the file ":cgi-bin:mycgi.cgi:blah", the 
|following will work as expected
|    http://localhost/cgi-bin/mycgi.cgi$blah
|Under MacHTTP, I gave "blah" in the PATH_INFO parameter (or whatever its 
|name). I didn't tried it with Quid Pro Quo, but I think that most Mac 
|webservers expect a $ to indicate the beginning of the path info. 

This is fine for local testing, however, many (most, all?) Unix servers
don't recognize the $, so if you'll ever move your site to a Unix (e.g.
Rhapsody) based server, you'll have to change all your pages (and any
bookmarks people have saved with the $ will become invalid.) In the long
run, I think you'll be better off taking the advice of whomever suggested
just using:

	http://mydomain/cgi-bin/mycgi.cgi?path=blah

This should work on whatever OS you move your site to in the future.

Brian

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch