[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?
Hi Waldemar, The SDK was updated so that a user can only specify headers in the SDK that they are able to specify in production. Since App Engine does not allow this header to be set, the SDK no longer does. -Marzia On Thu, Nov 20, 2008 at 12:57 PM, Waldemar Kornewald <[EMAIL PROTECTED]>wrote: > > Hi, > I hope I checked correctly. I completely removed and reinstalled the > SDK 1.1.6 two times. Urlfetch seems to remove the content-length > header from the HTTP response. At least, that attribute is part of > _UNTRUSTED_RESPONSE_HEADERS in urlfetch_stub.py and I printed the > headers with logging.debug() to make sure that the original response > contains that header and that the sanitized headers don't. Could some > Google engineer please verify? Thanks! > > Bye, > Waldemar Kornewald > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---
[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?
Hi Marzia, On Nov 20, 10:07 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > The SDK was updated so that a user can only specify headers in the SDK that > they are able to specify in production. Since App Engine does not allow > this header to be set, the SDK no longer does. What I meant is that content-length is missing in the response, not the request. On the production server it works correctly. This header is required at least by boto. How are we supposed to find out he length of the http response? Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---
[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?
Hi Waldemar, Sorry, I think I'm not understanding what issue you are seeing. Is it that the request received by your app has the content-length header removed? The SDK should disallow self.response.headers['Content-Length'] to be set by the user, as this is how our production environment behaves. Can you provide the code that is specifically causing the issue? -Marzia On Thu, Nov 20, 2008 at 1:45 PM, Waldemar Kornewald <[EMAIL PROTECTED]>wrote: > > Hi Marzia, > > On Nov 20, 10:07 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > > The SDK was updated so that a user can only specify headers in the SDK > that > > they are able to specify in production. Since App Engine does not allow > > this header to be set, the SDK no longer does. > > What I meant is that content-length is missing in the response, not > the request. On the production server it works correctly. This header > is required at least by boto. How are we supposed to find out he > length of the http response? > > Bye, > Waldemar Kornewald > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---
[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?
Hi Marzia, On Nov 20, 11:03 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Sorry, I think I'm not understanding what issue you are seeing. Is it that > the request received by your app has the content-length header removed? No, I'm using urlfetch: response = urlfetch.fetch(...) logging.debug(response.headers) => no content-length header in response Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---
[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?
Hi Waldemar, Ah, yes, sorry for the confusion. This is a bug. I've filed it: http://code.google.com/p/googleappengine/issues/detail?id=877 -Marzia On Thu, Nov 20, 2008 at 2:20 PM, Waldemar Kornewald <[EMAIL PROTECTED]>wrote: > > Hi Marzia, > > On Nov 20, 11:03 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > > Sorry, I think I'm not understanding what issue you are seeing. Is it > that > > the request received by your app has the content-length header removed? > > No, I'm using urlfetch: > > response = urlfetch.fetch(...) > logging.debug(response.headers) > > => no content-length header in response > > Bye, > Waldemar Kornewald > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---
[google-appengine] Re: SDK 1.1.6: urlfetch: no content-length in response?
Hi Marzia, On Nov 20, 11:27 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi Waldemar, > > Ah, yes, sorry for the confusion. This is a bug. I've filed > it:http://code.google.com/p/googleappengine/issues/detail?id=877 > > -Marzia Thanks a lot! Bye, Waldemar Kornewald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~--~~~~--~~--~--~---