|
本帖最后由 xingkekeli 于 2009-12-17 18:48 编辑
multipart/form-data方式提交的表单
如何用 xmlhttp 来POST呢
POST /index.php?mod=nclass&act=createapply&schoolid=11806&schooltype=3 HTTP/1.1
Accept: application/x-shockwave-flash, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*
Referer: http://xiaoyou.qq.com/index.php? ... ;act=schoolinfoedit
Accept-Language: zh-cn
Content-Type: multipart/form-data; boundary=---------------------------7d912819ba01b2
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Host: xiaoyou.qq.com
Content-Length: 717
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: pt2gguin=o0000xxxxxx; ptcz=2b7093f03c7e3c92e05054e2e97f3c13c54a05bfb6df4c620623c8665359bd28; randomSeed=867063; pvid=7827014375; uin=o0000xxxxxx; skey=@SquJlcHYi; pst=1261045688; name=%xxxxxx; hash=xxxxxx_1840cd028833941f7f524a62df9393c9; appint=91536; style=2
-----------------------------7d912819ba01b2
Content-Disposition: form-data; name="enrollyear"
2007
-----------------------------7d912819ba01b2
Content-Disposition: form-data; name="deptname"
鏂囨硶瀛﹂櫌
-----------------------------7d912819ba01b2
Content-Disposition: form-data; name="deptid"
20866
-----------------------------7d912819ba01b2
Content-Disposition: form-data; name="classname"
鑰冨彜2鐝?
-----------------------------7d912819ba01b2
Content-Disposition: form-data; name="classid"
0
-----------------------------7d912819ba01b2
Content-Disposition: form-data; name="photo"; filename=""
Content-Type: application/octet-stream
-----------------------------7d912819ba01b2-- |
|