Re: urllib accept-language doesn't have any effect

2008-10-16 Thread Martin Bachwerk
is doesn't quit help :( Thanks anyway, Martin On Oct 16, 2008, at 6:50 AM, 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

Re: urllib accept-language doesn't have any effect

2008-10-16 Thread Martin Bachwerk
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? Thanks again. Martin On Oct 15, 2008, at 9:50 AM, Martin Bachwerk

Re: urllib accept-language doesn't have any effect

2008-10-15 Thread Martin Bachwerk
But a site like gizmodo.com forwards me directly to the English site (even though they have a German version available). But the Python call returns the German version. How does that make sense? Cheers, Martin Martin Bachwerk wrote: Hello, I'm trying to load a couple of pages using

urllib accept-language doesn't have any effect

2008-10-15 Thread Martin Bachwerk
Hello, I'm trying to load a couple of pages using the urllib2 module. The problem is that I live in Germany and some sites seem to look at the IP of the client and forward him to a localized page.. Here's an example of the code, how I want to access google.com main english page, but get Germa