On Sat, Oct 18, 2008 at 1:52 PM, Wichert Akkerman <[EMAIL PROTECTED]> wrote: > Previously Sok Ann Yap wrote: >> On the other hand, if we look into httplib2's source code, which I >> supposed is everyone's favorite http client library, Joe Gregorio >> doesn't make any distinction between POST and DELETE. You can verify >> that by using httplib2 to send a DELETE request with body to a simple >> wsgi app that echoes back wsgi.input. > > Probably because that was just easier.I can not imagine what the > semantics for a body for DELETE would be. What information would you > want to send to something that you are deleting? > > Wichert. >
More often than not, the simple way will end up being the correct way as well ;) If you want more example, Paste's fixture also allows body to be sent together with a DELETE request. Anyway, I have described my use case in the original post, which is to send a CSRF protection token along with the request. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
