Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read InputStream from an HttpUrlConnection with a 500

Status
Not open for further replies.

shanesd

Programmer
Feb 8, 2004
1
US
I know that there is xml data that I need to get at eventhough I get a response code of 500. I get an IOException when I invoke getInputStream. Is there a way to get the data. Also I did try getErrorStream which just returns null.
Thank you.
 
HTTP code 500 is "internal server error" - so you will not be able to retrieve anything from the stream (apart from the http error message).

The docs state that getErrorStream() only returns a value if te server has filled this stream with something.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top