所以我做了这个手动POST请求:
接头
User-Agent: Fiddler
Host: myhost.com
Content-Length: 11
Content-Type: multipart/form-data; boundary=xYzZY
Te: deflate,gzip;q=0.3
Connection: close
请求正文:
from=lalala
但是从网站上检查$ _POST变量会发现变量是空的......
如果我将它设为application / x-www-form-urlencoded,尽管
User-Agent: Fiddler
Host: myhost.com
Content-Length: 11
Content-Type: application/x-www-form-urlencoded; boundary=xYzZY
Te: deflate,gzip;q=0.3
Connection: close
$ _POST变量将正确填充...
为什么在使用multipart / form-data时没有填充$ _POST变量?如何使用multipart / form-data使其工作?