PHP用socket模拟post表单

网络整理 - 08-29

POST /目的程序 HTTP/1.1Accept: */*Referer: : zh-cn,en-us;q=0.5Content-Type: application/x-www-form-urlencodedUser-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; .NET CLR 1.0.3705; .NET CLR 1.1.4322)Host: 要发送到的主机地址Content-Length: 发送数据的长度Pragma: no-cacheCache-Control: no-cacheusername=php&password=iask //post发送的数据