CSDN博客

img hahawen

post表单时的html报文的header信息

发表于2004/5/7 17:11:00  7905人阅读

分类: php技术

表单只有text的时候
POST /example.php HTTP/1.1
Host: 127.0.0.1
User-Agent: PEAR HTTP_Request class ( http://pear.php.net/ )
Content-Type: application/x-www-form-urlencoded
Connection: close
Accept-Encoding: gzip
Content-Length: 15
Foo1=bar&Foo2=1

表单只有file的时候
POST /example.php HTTP/1.1
Host: 127.0.0.1
User-Agent: PEAR HTTP_Request class ( http://pear.php.net/ )
Content-Type: multipart/form-data; boundary=HTTP_Request_62f8038e5c72bc40efd08be14dc3db66
Connection: close
Accept-Encoding: gzip
Content-Length: 616

--HTTP_Request_62f8038e5c72bc40efd08be14dc3db66
Content-Disposition: form-data; name="mail.gif"; filename="mail.gif"
Content-Type: image/gif

GIF89a    雁雂g櫰易疼嫖徵攒鸮d愇圊bi層泓毅逖蓊厢飃cび桕宿鹫骢脏镌屣冁褓潼劂钪狒厌鮢n曍膂袖笥泗孟吡惺]m囐觎!?     ,       `?俙亼,k抎?Va3R-_J?[`?罃H?`Q ?勉h6?瞐l4I?`嶕癷2翧?"   OKK;( b eW

c8 i,J  ?9, )f  ~刓np
 殒??A?+D`P*?P? `C?皺@
 刄 /?`? 锑`#?,pU,碌>?€ 艍@亷p? ;
--HTTP_Request_62f8038e5c72bc40efd08be14dc3db66
     

表单两者都有的时候的时候
POST /example.php HTTP/1.1
Host: 127.0.0.1
User-Agent: PEAR HTTP_Request class ( http://pear.php.net/ )
Content-Type: multipart/form-data; boundary=HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922
Connection: close
Accept-Encoding: gzip
Content-Length: 816

--HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922
Content-Disposition: form-data; name="Foo1"

bar
--HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922
Content-Disposition: form-data; name="Foo2"

1
--HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922
Content-Disposition: form-data; name="mail.gif"; filename="mail.gif"
Content-Type: image/gif

GIF89a    雁雂g櫰易疼嫖徵攒鸮d愇圊bi層泓毅逖蓊厢飃cび桕宿鹫骢脏镌屣冁褓潼劂钪狒厌鮢n曍膂袖笥泗孟吡惺]m囐觎!?     ,       `?俙亼,k抎?Va3R-_J?[`?罃H?`Q ?勉h6?瞐l4I?`嶕癷2翧?"   OKK;( b eW

c8 i,J  ?9, )f  ~刓np
 殒??A?+D`P*?P? `C?皺@
 刄 /?`? 锑`#?,pU,碌>?€ 艍@亷p? ;
--HTTP_Request_4893a7ce3361284d0e2ce39f2fdfa922
     
0 0

相关博文

我的热门文章

img
取 消
img