连我自己的网站没什么问题,conn.getResponseCode()是200.android客户端应该是没问题
但是连我们学校的两个登陆页面 一个是400错误 一个是404错误。下面是用Httpwatch抓的包下面这个是400错误POST /pyxx/login.aspx HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://210.44.8.24/pyxx/login.aspx
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; BOIE9;ZHCN)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: 210.44.8.24
Content-Length: 151
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ASP.NET_SessionId=zxpaki45jhfiibyddk2txi3x__VIEWSTATE=dDw1MzgxOzs%2BM2aNAmySypm9lXJTG5T25OGt7q8%3D&_ctl0%3Atxtusername=2010021&_ctl0%3Atxtpassword=198604&_ctl0%3AButton1=%E7%A1%AE%E5%AE%9A下面这个是404错误
POST /pls/wwwbks/bks_login2.login?jym2005=1103.4888191477582 HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://210.44.2.168:7777/zhxt_bks/xk_login.html
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; BOIE9;ZHCN)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: 210.44.2.168:7777
Content-Length: 33
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ACCOUNT=2006115100100906184537stuid=200611510010&pwd=8830789122
高手们,有什么解决的办法吗?~