Php cannot obtain the POST value. it is okay to submit a form on a webpage and send it to php.
Now the client is sent in c ++,
@ File_get_contents ('php: // input'); you can get it! Show q = test
However, $ _ POST ['Q'] cannot be obtained. $ _ POST array is empty
The entire request header is:
POST/xxx. php? Ent_id = xxxx & from = xxhttp/1.1
Connection: Keep-Alive
User-agent: Tsl/0.1
Content-Length: 6
Host: 127.0.0.1
(However, the same request can be sent to another server)
Thank you!
Reply to discussion (solution)
Compare browser requests:
More
Content-Type: application/x-www-form-urlencoded
Referer: http: // 127.0.0.1/xxxxx
It should not be related to this...
If you want to get the result using $ _ POST, you must have Content-Type: application/x-www-form-urlencoded.
Reference: http://blog.csdn.net/fdipzone/article/details/40098169
Yes, php $ _ POST requires ContentType to be parsed.