• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Java programmers, help!

FrogDog

Diamond Member
I'm attempting to make a java program which will access a certain webpage, but it's an asp page and I'm not sure how to do this. I can do it for .html pages, but when I enter in an asp one it gives me these errors:

java.net.ProtocolException: Server redirected too many times (5)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at WebClient.main(WebClient.java:33)
Exception in thread "main"

So obviously I need to use another method of accessing the URL than I am now, which is just using the URLConnection class. I have looked around the net and couldn't find anything to help me.

And by the way this isn't for school. 😛
 
Back
Top