This discussion is archived
1 Reply Latest reply: Dec 7, 2010 9:32 PM by 737490 RSS

On Windows 7 HttpURLConnection.openConnection() throws IOException

737490 Newbie
Currently Being Moderated
Hi Team,
In our application we have a to create httpURLCOnnection (url.openConnection())which works fine on Windows XP but throws IOException on Windows7. Does anybody know which settings need to be enabled on windows 7 to resolve this issue?

Any response would be appreciated. Thanks in Advance.
  • 1. Re: On Windows 7 HttpURLConnection.openConnection() throws IOException
    737490 Newbie
    Currently Being Moderated
    Hello Team,
    I have a specific exception which I get when trying to open a url on Windows 7 with IIS authentication enabled. We get exception when trying to get response code of HTTP Connection

    java.io.IOException: Authentication failure
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)

    Same code works find on windows XP. Do I need to do any specific settings on Windows7 to work this?

    Thanks in Advance.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points