| Author |
URLConnection how to find the Http Code
|
mani vannan
Ranch Hand
Joined: Apr 17, 2006
Posts: 47
|
|
|
Hi, I am using following code sample given in the url http://www.iam.ubc.ca/guides/javatut/networking/urls/readingWriting.html, to read a web page. The server redirects my client. How do I find the HTTP Response code returned by the server?
|
Mani (SCEA 1.4)<br /><a href="http://excusemeworld.com/technical/is-scjp-useful-worth-helps-job/" target="_blank" rel="nofollow"> Is SCJP Useful? Worth? Helps job?</a>
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8259
|
|
|
your link doesn't work, but you can get the response code from HttpURLConnection.getResponseCode()
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
 |
|
|
subject: URLConnection how to find the Http Code
|
|
|