network.request ignoring params.body when using method DELETE?

I am finishing integrating an app with a API and I am having problem performing a DELETE request. For some reason, the body that I sending on that DELETE is being ignored and the request goes without body.

Is that a limitation of the Corona Network api?

HTTP DELETE does not specifically ban sending additional data in the body, but many servers ignore it. The DELETE verb can return a 200 code and a response body on return. Your best bet if you need to pass parameters is to treat DELETE like GET and include the key value pairs as part of the URI.

Rob

Hi Rob.

The problem is not on the server, but on the client side. I setup a proxy to see what Corona Simulator (Mac OSX Yosemite - Daily Build 2016.2817) is sending and the request is being sent without body.

But I already solved passing the info on the URI. Any case, it is registered here the problem if any future developer face the same situation.

HTTP DELETE does not specifically ban sending additional data in the body, but many servers ignore it. The DELETE verb can return a 200 code and a response body on return. Your best bet if you need to pass parameters is to treat DELETE like GET and include the key value pairs as part of the URI.

Rob

Hi Rob.

The problem is not on the server, but on the client side. I setup a proxy to see what Corona Simulator (Mac OSX Yosemite - Daily Build 2016.2817) is sending and the request is being sent without body.

But I already solved passing the info on the URI. Any case, it is registered here the problem if any future developer face the same situation.