librelist archives

« back to archive

Support for HTTP DELETE entity-body

Support for HTTP DELETE entity-body

From:
Jonathan Zempel
Date:
2011-03-01 @ 17:30
Hey Flaskers,

See

http://stackoverflow.com/questions/299628/is-an-entity-body-allowed-for-an-http-delete-requestfor
an interesting discussion re: support for an entity-body on DELETE
requests.  I realize the RFC might be a bit vague, but it seems like a
framework as progressive as Flask would come down on the side of allowing
it.  Currently, Flask request data (form, args, values, etc.) is not
available when the method is DELETE.  I'd prefer if Flask supported
entity-body for DELETE requests.  (fwiw, jQuery.ajax() sends form-urlencoded
data with DELETE requests.)

My use case: I'd like to be able to send username/password credentials as a
means of authorizing a user's request to delete a resource.  And I'd prefer
not to put that information on the URL.

Cheers,
Jonathan.