问个模拟post提交的一个网站,很奇怪,没见过
网站是http://www.aozn7.com/,
模拟注册,提交的数据竟然是
-----------------------------7dccb373074c
Content-Disposition: form-data; name="regsubmit"
yes
-----------------------------7dccb373074c
Content-Disposition: form-data; name="formhash"
002d7f7b
-----------------------------7dccb373074c
Content-Disposition: form-data; name="referer"
http://www.aozn7.com/forum.php?mobile=no
-----------------------------7dccb373074c
Content-Disposition: form-data; name="activationauth"
-----------------------------7dccb373074c
Content-Disposition: form-data; name="f36xi1"
aaaaaa
-----------------------------7dccb373074c
Content-Disposition: form-data; name="JsQgGJ"
123123
-----------------------------7dccb373074c
Content-Disposition: form-data; name="D6Gwsu"
123123
-----------------------------7dccb373074c
Content-Disposition: form-data; name="H5P64X"
123@qq.com
-----------------------------7dccb373074c--
这样的格式,分析他的html,他提交的控件的name是空,只有id的值,模拟提交这些数据好像也没什么用。怎么回事?
------解决方案--------------------这种还是文本格式,你只要详细了解这种格式就可以模拟了,参考如下博客
http://www.cnblogs.com/greenerycn/archive/2010/05/15/csharp_http_post.html