When an HTTP POST is redirected to GET, what happens to the body of the POST?

后端 未结 2 1378
攒了一身酷
攒了一身酷 2021-01-28 18:12

As per my previous question, I need to redirect an HTTP POST request to a different server. I believe this can be done using HTTP response headers from php, but I understand the

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-28 18:50

    If you are using CURL to redirect such a request, it is regarded as a distinct, new HTTP request that is not related to the original one at all. The only data that gets passed along is that which you explicitly pass in the query string.

提交回复
热议问题