urllib accept-language doesn't have any effect

Diez B. Roggisch deets at nospam.web.de
Thu Oct 16 08:00:32 EDT 2008


Martin Bachwerk wrote:

> Hmm, thanks for the ideas,
> 
> I've checked the requests in Firefox one more time after deleting all
> the cookies and both google.com and gizmodo.com do indeed forward me to
> the German site without caring about the browser settings.
> 
> wget shows me that the server does a 302 redirect straight away.. soo..
> 
> Is there a way to pretend I'm from the US and not from wherever else? I
> tried setting the X_FORWARDED_FOR header, but that doesn't seem to
> work.. There must be some way to override the client IP, or?

No. Not within application code, that is. You can of course try and use e.g.
TOR or other anonymization proxies, or brush up your m4d hacking sk1llz and
learn a bit or two about IP-spoofing.

Diez



More information about the Python-list mailing list