2

I get an "unrecognized HTTP method" when trying to do a REPORT request using httplib and gae. Is there a workaround available? An httplib patch for gae? Do you I have to find another host in order to do this natively?

According to the docs, only certain fetch actions are valid: GET, POST, HEAD, PUT, and DELETE: http://code.google.com/appengine/docs/python/urlfetch/ fetchfunction.html

user306082
  • 21
  • 1
  • 3
    You need some way to violate the HTTP standard, RFC 2616, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html -- there are eight methods (the 5 GAE supports, plus the obscure OPTIONS, TRACE and CONNECT), there is no REPORT method in the HTTP standard. – Alex Martelli Mar 31 '10 at 14:28
  • @AlexMartelli There's no need to call something obscure just because GAE doesn't support it :) – Piotr Dobrogost Apr 07 '12 at 18:22

1 Answers1

4

httplib on App Engine is a wrapper around the urlfetch API, which only supports the GET, POST, PUT, HEAD and DELETE methods. I'm afraid you're out of luck unless the API you're accessing supports some sort of X-HTTP-Method-Override functionality.

Nick Johnson
  • 100,655
  • 16
  • 128
  • 198