A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
HTTP Error Codes Help
Dale DeMott
Ranch Hand
Joined: Nov 02, 2000
Posts: 514
posted
Dec 29, 2004 15:28:00
0
How do I might I get a response object from an external site and pull out the error codes without using a
Servlet
?
By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)
pascal betz
Ranch Hand
Joined: Jun 19, 2001
Posts: 547
posted
Dec 30, 2004 01:57:00
0
hi
HttpURLConnection urlC = (HttpURLConnection) new URL("http://foo.bar.com").openConnection();
and then there is a the getResponseCode() method to get information from the connection.
pascal
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: HTTP Error Codes Help
Similar Threads
Custom Error Page Filter
plz help URGENT
"this" question required
Difference in status and error codes
error page for exceptions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter