Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to allow Google App Engine to send body or payload with a DELETE request?

I'm attempting to interface with an API that requires XML data to be contained in the body of an HTTP DELETE request. I'm using urlfetch in AppEngine and the payload is simply ignored for DELETE requests.

After reading this article: Is an entity body allowed for an HTTP DELETE request?, I realize that the standard probably doesn't allow body content on DELETE requests and that's why urlfetch is stripping the body.

So my question is: is there some sort of work-around to append body content in app engine when urlfetch ignores the payload?

like image 836
elkelk Avatar asked Feb 05 '10 21:02

elkelk


1 Answers

Per the docs,

The URL fetch service supports five HTTP methods: GET, POST, HEAD, PUT and DELETE. The request can include HTTP headers, and body content for a POST or PUT request.

Given that the GAE Python runtime is heavily sandboxed, it's extremely unlikely that you'll be able to get around this restriction. I consider that to be a bug, and you should probably file a bug report here.

like image 90
Jonathan Feinberg Avatar answered Oct 19 '22 23:10

Jonathan Feinberg