$_SERVER['REQUEST_METHOD'] change after migrating to SSL

前端 未结 1 1424
猫巷女王i
猫巷女王i 2021-01-26 15:45

We recently migrated to SSL, and the site works great with the exception of one function. The function uses curl in the code below to execute an api located on the same server.

1条回答
  •  深忆病人
    2021-01-26 16:35

    Following a 301 redirect can cause a POST request to be followed up with a GET request.

    Change the URL you are requesting to the URL you actually want (i.e. not the old one that now returns a redirect instruction).

    0 讨论(0)
提交回复
热议问题