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

前端 未结 10 768
名媛妹妹
名媛妹妹 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 11:02

    I was setting the url in Postman to be http:// but Apache was redirecting to https:// and somehow the POST variables were being dropped along the way.

    After I changed it to https://, the POST variables worked properly.

    See also: https://stackoverflow.com/a/28461500/704803

提交回复
热议问题