Sending POST parameters with Postman doesn't work, but sending GET parameters does

前端 未结 10 765
名媛妹妹
名媛妹妹 2020-12-02 10:04

I\'m trying to test a simple PHP page using the Chrome extension Postman. When I send URL parameters, the script works fine (eg the variables are available in the $_RE

10条回答
  •  误落风尘
    2020-12-02 10:42

    I was having the same problem. To fix it I added the following headers:

    Content-Type: application/json
    

    I had to manually add the content type even though I also had the type of "json" in the raw post field parameters.

提交回复
热议问题