Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing html pages through proxy needs Proxy authorization  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am accessing web pages from my java program,
I have specified the required details, but It doesn't work...
I have specified the below :
System.getProperties().put("proxySet", "true");
Also set the Autorization details as below :
String authString = "user assword";
String auth = "Basic " + new BASE64Encoder().encode(authString.getBytes());
conn.setRequestProperty("Proxy-Authorization", auth);
But when i try to access pages, I get the html displaying
HTTP Error 407
407 Proxy Authentication Required
Even after providing the correct user id and password..
While accessing through IE, I need to give the domain of the user,
in IE 4.0 user : <domain name>\<user name>
pass : <password>
Do I have to specify the domain name in the Authorization details, if so, how do I do that.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!