aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes URL stream throws exception when trying to read from input stream Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "URL stream throws exception when trying to read from input stream" Watch "URL stream throws exception when trying to read from input stream" New topic
Author

URL stream throws exception when trying to read from input stream

lekkie Nakel
Greenhorn

Joined: Jan 23, 2007
Posts: 15
Hi guys,

I tried reading from an input stream which returned a 401. Actually, the server side returns 401 whenever the application server cannot fulfill the client's request, however the 401 contains a message which I will like to read.

I have tried this with mozilla and the return message is properly displayed even at 401. How can I read this message?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: URL stream throws exception when trying to read from input stream
 
Similar Threads
output as URL
Length of the Socket Input Stream to Read 'OR' End of the Socket Stream
Length of the Socket Input Stream to Read 'OR' End of the Socket Stream
Submit xml data to an Url from a servlet
Why is IOException???