This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes 509 IOException Error when accessing intranet page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "509 IOException Error when accessing intranet page" Watch "509 IOException Error when accessing intranet page" New topic
Author

509 IOException Error when accessing intranet page

R Johnson
Greenhorn

Joined: Jan 05, 2010
Posts: 28

This question is a little in depth but essentially I am trying to ping an intranet page for updates and post any updates to a text box. Sort of like an rss feed. Using the Tools>Developers on Google Chrome I copied all the headers to match exactly. There are no cookies needed for the request and the program I wrote works but only for a little while then it gives me a 509 IOException error when attempting to connect. Looking up the error tells me it's a bandwidth exceeded error but when I hit refresh on Google Chrome which appears to send the exact same header information as I am in java it refreshes with no issues. There is a ton of code and the web page is an intranet page so I can't really provide exact code but maybe pseudo code if someone thinks it might help. Thanks to anyone who might be able to provide me with a direction to look for issues because I just can't even begin to understand where the issue is coming from unless it's sending something other than my headers to the page.

The intranet page I cannot access or change anything about it but I do know it's written in php and using an Apache Server.

Using HTTPURLConnection and BufferedReader for the response.

To clarify in case it's not clear accessing the intra-page in java using HTTPURLConnection works for about 2 minutes and then gives me the error. I would think it was blocking my ip or something if when I refreshed Google Chrome it blocked that as well. But for some reason I can refresh Google Chrome and get the page but not when I essentially "refresh" with Java.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 509 IOException Error when accessing intranet page
 
Similar Threads
509 IOException when trying to access an intranet page
how can i use google api in my intranet application
JSF Chrome
File download servlet
Label style not working in IE 8.0