Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

509 IOException Error when accessing intranet page  RSS feed

R Johnson
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!