[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: transparent proxy
On Wed, 4 Nov 1998, Erez Doron wrote:
> correct me if I'm wrong, but I do not think port redirection
> is enough !
it is...
>
> normal http request, connect the requested host, and gives
> a request like this:
> GET /xxx/yyy/zzz.html http/1.0
> but a proxy is not the host requested, so the request is different:
> GET http://www.hostname.com/xxx/yyy/zzz.html
nope. an http 1.X requst doesn't HAVE to include the full URL (including
hostname) but in fact it always will include it for the very simple reason
that that is the simplest way to create multiple virtual websites on one
machine without eating up IP addresses. simply telnet to
third.floor.palo-alto.ca.us port 80 and try the many web sites we run
there on a single IP address:
GET http://www.scso.com/ HTTP/1.0
GET http://www.site.co.il/ HTTP/1.0
GET http://dalit.site.co.il/ HTTP/1.0
GET http://bnb.site.co.il/ HTTP/1.0
GET http://yaron.tours.co.il/ HTTP/1.0
GET http://third.floor.palo-alto.ca.us/ HTTP/1.0
GET http://showroom.floor.palo-alto.ca.us/ HTTP/1.0
etc., etc... web browsers have to request the full URL to get the right
info... even lynx does it correctly (version 2.7 and up I believe)
--
Ira Abramov (°- L I N U X -°)
whois: IA58 //\ /\\
www.scso.com v_/_ Because a 486 is too good to waste _\_v