Michael Dean wrote:
>
> hi ppl
>
> is it possible to redirect a plain GET request say
>
> GET / HTTP/1.0
>
> to another url?? ... ie. I have a redirecting perl script running with the
> line ...
>
> s,^/$,http://proxycfg:8080/,g
>
> so that it tries to redirect to the proxycfg host that will spit back the
> proxy autoconfig for web clients using proxy autoconfig ...
>
> what I've tried thus far doesn't work.
>
> has anyone tried to do this sort of thing already? or does squid refuse
> the URL that is requested before it gets to the redirector stage.
>
> any ideas would be appreciated.
>
> mike
>
> -- Michael Dean
> Email: sysmwd@dtir.qld.gov.au ,-_|\ UNIX Support
> Phone: +61 7 3247 5724 / * Dept of Employment, Training
> Fax: +61 7 3247 9111 _,-._/ and Industrial Relations
> v http://unix/
> "Close my eyes and hope that it's a,
> real smooth flight, this time..."
I think it _should_ be rejected at the first level parsing step before
being passed to a redirector. I'm also fairly sure that it happens
_after_ the redirector in squid 1.1.x (because I had a redirector crash
from an unexpected hostless url). Squid2.x? Not sure. Pick a number.
D
Received on Wed Apr 07 1999 - 01:57:26 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:44 MST