HttpURLConnection gets the input stream

HttpURLConnetion getInputStream () how to get no value.

Started by Omar at November 10, 2016 - 7:17 PM

I have the same problem, is not solve? Who knows ah?

Posted by Ellie at November 11, 2016 - 8:07 PM

Code posted have a look.

Posted by Christ at November 13, 2016 - 8:22 PM

URL url=new URL(p,host,port,uri);
HttpURLConnection con=(HttpURLConnection) url.openConnection();
String resp=receive(con.getInputStream());//Run to here is wrong

-- error information returned HTTP response code:503 for URL:........

Posted by Omar at November 24, 2016 - 8:25 PM

503 Service Unavailable
You request webpage has a problem, an error occurred on the server.

Posted by Rudolf at December 07, 2016 - 9:25 PM

Is it right? Code is wrong, or the server? I request is not a webpage, a controller (con.getInputStream), is not value, abnormal, how to solve

Posted by Omar at December 10, 2016 - 9:40 PM

Access to some small sites have a look, some large sites have anti pickpocket settings.

Posted by Caesar at December 19, 2016 - 9:48 PM