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

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



On Sat, 22 Nov 1997, Chris Nandor wrote:
> At 16.38 11/22/97, Larry Prall wrote:
> >[snap]
> >                "NOTE: The Microsoft Internet Information Server is broken
> >with respect
> >to additional path information.  If you use the Perl DLL library, the IIS
> >server will attempt to execute the additional path information as a Perl
> >script. ..."
> >
> >That's exactly what I saw with both QuidProQuo and NetPresenz. I tried
> >once more with MacHTTP 2.2, and again got the same result.
> 
> All Mac OS servers I know of will not try to parse out CGI from a path, i.e.:
> 
>         http://localhost/cgi-bin/env2.acgi/bfisadbfsdf
> 
> Most Unix servers will treat '/bfisadbfsdf' as extra path information, and
> send it as environmental information to the CGI.  But Mac servers will look
> for a file called ':cgi-bin:env2.acgi:bfisadbfsdf'.
> 
> >It's hard for me to believe that all of the Mac Web servers are "broken
> >with respect to additional path information"; am I missing something? Has
> >anyone ever successfully used additional path information with CGI.pm and
> >MacPerl with QPQ, NetPresenz or MacHTTP?
> 
> If I were you, I would simply make it a parameter:
> 
>         http://localhost/cgi-bin/env2.acgi?path=/bfisadbfsdf
> 

mm.. AFAIK, Mac Web servers actually parses the extrapath information. 
I remember that in MacHTTP 2.2 documentation, there was something that 
explain that. If 

    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. 

> --
> Chris Nandor               pudge@pobox.com           http://pudge.net/
> %PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
> #==                    MacPerl: Power and Ease                     ==#
> #==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#
> 
> 
> 
> ***** Want to unsubscribe from this list?
> ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch
> 

Sebastien Aperghis-Tramoni        mailto:madingue@cis.uni-muenchen.de
http://www.resus.org/~madingue    mailto:madingue@tango.resus.univ-mrs.fr
----------
Perl has no bug : only unexpected or unwished features.


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