Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    FYI, the appengine.monkeypatch() line should be in your imports before you import any modules that use requests. Commented Feb 12, 2018 at 0:25
  • this should be the accepted answer, it worked with me Commented Aug 16, 2018 at 15:22
  • While this works for most cases, it should be noted that this method uses the App Engine's urlfetch which is available under the free quota but has some limitations. For example, it does not currently support client-side certificates, which works with the approach in the currently accepted answer that uses sockets. Commented Aug 5, 2019 at 6:44