hi Tony,
you will need tricky implementation when testing with local server:
http://groups.google.com/group/google-appengine/browse_thread/thread/876f26e48caf5709
maybe headers mangling or some kind of server reconfiguration -
because at least "gzip" is sent as promised in "User-Agent" header,

regards,
Peter

On Feb 9, 6:32 pm, Tony Arkles <[email protected]> wrote:
> Hi,
>
> We're using urlfetch to access Yahoo Boss, which requires "Accept-
> Encoding: gzip" in the HTTP headers.
>
> The documentation doesn't indicate that this is a "forbidden" 
> header:http://code.google.com/appengine/docs/python/urlfetch/fetchfunction.html
>
> The code works great on the live server, but on the dev_appserver, the
> "Accept-Encoding" header is stripped out before the request is sent
> out.  From urlfetch_stub.py:
>
> _UNTRUSTED_REQUEST_HEADERS = frozenset([
>   'accept-encoding',
>   'content-length',
>   'host',
>   'referer',
>   'user-agent',
>   'vary',
>   'via',
>   'x-forwarded-for',
> ])
>
> Any idea why this is happening?  Is this by design, or is this a bug
> on the local appserver code?
>
> Cheers
> Tony
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to