Robert Klemme
9/24/2008 6:21:00 AM
On 24.09.2008 02:11, Daniel Choi wrote:
> I used net/http to do the same thing, but this time I printed out the
> redirect locations. The result is very interesting. If it don't set
> the "User-Agent" header, it get redirected to one proxy -- the one
> with outdated content. If I set the "User-Agent" header to "Mozilla/
> 5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/XX (KHTML, like
> Gecko) Safari/YY" (faking Apple Safari), I get redirected to another
> proxy, with the up to date content.
>
> I didn't know that servers redirected requests to bad or good proxies
> depending on what the User Agent header is. But this seems to be the
> case here.
Daniel, thanks for the update! This is interesting stuff. The
distinction is probably not so much between "bad" or "good" proxies but
between proxies tailored for a particular browser version. Maybe it's a
bug and you should show this to your IT department. Could be that they
changed firewall rules in the past and the "bad" proxy never gets
updated because of lacking connectivity. :-)
Cheers
robert