开发者

How can I get request raw data in PHP?

开发者 https://www.devze.com 2023-03-03 19:52 出处:网络
I am designing a server which works as a proxy server in PHP. It just forwards the request from the client to server and replies the response from the server back to the开发者_JAVA技巧 client.

I am designing a server which works as a proxy server in PHP. It just forwards the request from the client to server and replies the response from the server back to the开发者_JAVA技巧 client.

I want to read the raw request data of the client. It may include POST, GET, or multipart/form-data with files to be uploaded. How can I do it?


file_get_contents("php://input");

You can see more options in php:// ("Options").

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号