post表单时的html报文的header信息
来源:互联网 发布:sql降序排列语句 编辑:程序博客网 时间:2024/06/16 19:00
表单只有text的时候
POST /example.php HTTP/1.1Host: 127.0.0.1User-Agent: PEAR HTTP_Request class ( http://pear.php.net/ )Content-Type: application/x-www-form-urlencodedConnection: closeAccept-Encoding: gzipContent-Length: 15Foo1=bar&Foo2=1
表单只有file的时候
POST /example.php HTTP/1.1Host: 127.0.0.1User-Agent: PEAR HTTP_Request class ( http://pear.php.net/ )Content-Type: multipart/form-data; boundary=HTTP_Request_62f8038e5c72bc40efd08be14dc3db66Connection: closeAccept-Encoding: gzipContent-Length: 616--HTTP_Request_62f8038e5c72bc40efd08be14dc3db66Content-Disposition: form-data; name="mail.gif"; filename="mail.gif"Content-Type: image/gifGIF89a 雁雂g櫰易疼嫖徵攒鸮d愇圊bi層泓毅逖蓊厢飃cび桕宿鹫骢脏镌屣冁褓潼劂钪狒厌鮢n曍膂袖笥泗孟吡惺]m囐觎!? , `?俙亼,k抎?Va3R-_J?[`?罃H?`Q ?勉h6?瞐l4I?`嶕癷2翧?" OKK;( b eWc8 i,J ?9, )f ~刓np 殒??A?+D`P*?P? `C?皺@ 刄 /?`? 锑`#?,pU,碌>?€ 艍@亷p? ;--HTTP_Request_62f8038e5c72bc40efd08be14dc3db66
表单两者都有的时候的时候
POST /example.php HTTP/1.1Host: 127.0.0.1User-Agent: PEAR HTTP_Request class ( http://pear.php.net/ )Content-Type: multipart/form-data; boundary=HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922Connection: closeAccept-Encoding: gzipContent-Length: 816--HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922Content-Disposition: form-data; name="Foo1"bar--HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922Content-Disposition: form-data; name="Foo2"1--HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922Content-Disposition: form-data; name="mail.gif"; filename="mail.gif"Content-Type: image/gifGIF89a 雁雂g櫰易疼嫖徵攒鸮d愇圊bi層泓毅逖蓊厢飃cび桕宿鹫骢脏镌屣冁褓潼劂钪狒厌鮢n曍膂袖笥泗孟吡惺]m囐觎!? , `?俙亼,k抎?Va3R-_J?[`?罃H?`Q ?勉h6?瞐l4I?`嶕癷2翧?" OKK;( b eWc8 i,J ?9, )f ~刓np 殒??A?+D`P*?P? `C?皺@ 刄 /?`? 锑`#?,pU,碌>?€ 艍@亷p? ;--HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922
转载地址
http://blog.csdn.net/hahawen/article/details/20694
阅读全文