Results 1 to 2 of 2
Thread: Response code from URL
- 07-01-2010, 04:01 PM #1
Member
- Join Date
- Jul 2010
- Posts
- 1
- Rep Power
- 0
Response code from URL
I was using a URLConnection to go to a URL which essentially submitted a request onto a server for analysis of my query , and then I get a reference number from that URL to go to another one for the results.
For whatever reason at random times I get this error
java.io.IOException: Server returned HTTP response code: 502 for URL: http://www.....
I just wanted advice on whether bypassing the entire run of the program by using HttpURLConnection and getting the response code was the only and ideal solution to prevent this.
- 07-01-2010, 09:52 PM #2
Member
- Join Date
- Jan 2010
- Posts
- 14
- Rep Power
- 0
Wat I found on the wiki is that response code 502 indicates a bad gateway.
http://en.wikipedia.org/wiki/502_error#5xx_Server_Error
502 Bad Gateway
The server was acting as a gateway or proxy and received an invalid response from the upstream server.
Similar Threads
-
Server returned HTTP response code: 500.. i need help
By hardc0d3r in forum Java ServletReplies: 9Last Post: 03-12-2012, 08:08 PM -
Server returned HTTP response code: 500
By fuliangQ in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 04-09-2009, 03:55 AM -
Try catch response
By Reiyn in forum New To JavaReplies: 1Last Post: 03-30-2009, 08:30 PM -
java.io.Exception: Server returned HTTP response code: 403
By navishkumarb in forum Advanced JavaReplies: 1Last Post: 01-05-2008, 01:33 PM -
Server returned HTTP response code: 500
By Heather in forum Java ServletReplies: 1Last Post: 07-09-2007, 04:32 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks