阅读背景:

如何在Android中连接到服务器时收到错误消息

来源:互联网 

I use GET method to connect to the server, and the server responses http status code 403. When I paste the url of my GET method to browser, I'm received "some text" and http status code 403. But when I send a GET request with the same url to the server by HttpURLConnection of Java(Android), I'm just received http status code 403, and response text is null. So anyone can tell me how to get the "some text" when server return code 403. Thanks in advance. I use GET method to connect to the server, and




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: