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

前端 未结 10 766
名媛妹妹
名媛妹妹 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:45

    I faced the same issue in PostMan and Advance REST Client both. I checked through fiddler and found that my request payload is not converted into JSON format.

    I am passing my data in Body as x-www-form-urlencoded

    You can fix it by using Content-Type as application/x-www-form-urlencoded in request header.

提交回复
热议问题