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

Re: [MacPerl] Perl sockets on Mac



>>> "Paul J. Schinder" <schinder@pjstoaster.pg.md.us> 02/14/97 03:25am >>>

>}$url    = 'http://bb.gt.kth.se/cgi-bin/bbplupp.cgi';
>            ^^^^^^^^^^^^^^^^^^  this is wrong, although it may work with >some
>                                servers.  It already knows http by the >port,
>                                and the host by the socket
>$url = "/cgi-bin/bbplupp.cgi";

It is certainly redundant. I do not think it is wrong.
I think this is how a browser talks to a proxy-server.
This is my understanding of proxy-servers:

Assume the user asks for "http://bb.gt.kth.se/cgi-bin/bbplupp.cgi".

In a "normal" situation, the browser would open an http connection to the server
bb.gt.kth.se and ask for "/cgi-bin/bbplupp.cgi".

When using a proxy-server, the browser would open an http connection to the
proxy-server and ask for "http://bb.gt.kth.se/cgi-bin/bbplupp.cgi".

Regards,
Peter Van Avermaet