RESTClient icon indicating copy to clipboard operation
RESTClient copied to clipboard

POST data isn't send at localhost?

Open badmansan opened this issue 7 years ago • 2 comments

I have the latest version of FFx64 (62.0) and RESTClient (3.0.7) Where i try to send data via method POST to php script, it return me empty $_POST array. The script code is very simple: <?php var_dump($_REQUEST); The result is array(0) { }

Body param string is something like dddd=1 The remote test is ok, for example http://httpbin.org/post I use OpenServer, php 7.0.26.

Other rest test app work fine, for example postman return me array(1) { ["ddd"]=> string(3) "111" }

badmansan avatar Sep 07 '18 14:09 badmansan

I also tested the same problem as you. This is a bug. I used other tools and curl commands generated by him are correct.

mydevc avatar Nov 09 '18 02:11 mydevc

POST and PUT will send data from the Body panel but only when Header Content-Type: application/x-www-form-urlencoded. GET does not send the Body - in all cases the curl statement generated will send the body content.

dtar avatar Sep 27 '19 18:09 dtar