chao / RESTClient

RESTClient, a debugger for RESTful web services.
http://www.restclient.net
BSD 3-Clause "New" or "Revised" License
703 stars 172 forks source link

POST data isn't send at localhost? #319

Open badmansan opened 6 years ago

badmansan commented 6 years ago

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" }

mydevc commented 6 years ago

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

dtar commented 5 years ago

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.