First question response code 407 means authorisation needed then why am I able to access the URL through browser without any authentication, so I guess it is something to do with code.
Now I modify the code a bit and add
Where PasswordAuthenticator is an subclass of Authenticator overridding its protected PasswordAuthentication getPasswordAuthentication()method returning the user-id and password I use to log on to windows
I had this exact same problem. The issue lies around the authentiction. I tried the follwoing: System.getProperties().put("http.proxyUser", "myuser"); System.getProperties().put("http.proxyPassword", "mypass"); but it didn't work.