在程序里需要设置哪几项参数?
我在程序里设置了
服务器ip=本地服务器ip(192.168.0.107)
请求的url="GET http://192.168.0.107/test/test.asp HTTP1.1\r\nHOST: 192.168.0.107\r\nContext: text/xml\r\nConnection: Keep-Active "
上述设置后,程序能跑到notify去,并可以触发connect与read时间,但是接收到的内容为HTTP/1.1 400 file not found错误。
如果我通过模拟器“网络服务”里的设置将接入点设置为cmnet,地址设置为:http://192.168.0.107/test/test.asp ,却可以浏览网页
------解决方案--------------------
将url里“http://192.168.0.107”去掉就可以了