micha / resty

Little command line REST client that you can use in pipelines (bash or zsh).
MIT License
2.65k stars 143 forks source link

DELETE request with a payload? #46

Closed pv7721 closed 7 years ago

pv7721 commented 10 years ago

Hello,

I know that as this is vaguely touched in the HTTP spec, most REST tools are very touchy about this subject: some disallow completely such behaviour, and resty seems to ignore any payload given along a DELETE request. So is this an issue or works as designed? Thanks!

mkonecny commented 9 years ago

Judging from this SO thread, it appears to be allowed, but ignored.

http://stackoverflow.com/questions/299628/is-an-entity-body-allowed-for-an-http-delete-request

AdrieanKhisbe commented 9 years ago

Reading SO comments, make sense to me to enable to do this with resty.

Then one could be able to send a body if I need and I server user it.

What is your mind on this? (If okey, I'll add this feature)

AdrieanKhisbe commented 9 years ago

Next major version of resty will support it. (implemented in the refactor branch)

Otherwise for use case like , it's better I think to make use of the Header than a payload.

rhlsthrm commented 7 years ago

I would like to use this functionality as well. Can this be released?

AdrieanKhisbe commented 7 years ago

@rhlsthrm It would need me to refresh and complete the refactor I started two years ago. but this may happens :)

AdrieanKhisbe commented 7 years ago

this should normally land with #50 pr