Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to connect a URL if using a proxy setting?  RSS feed

aminur rashid
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am making connection to a url and i have set the properties as
System.setProperty("http.proxyHost", myProxy);
System.setProperty("http.proxyPort", "80");
but how to supply the user id and password for the proxy server
What will be the key1 and key2 in
System.setProperty(String key1,"myID");
System.setProperty(String key2,"myPassword");

[This message has been edited by aminur rashid (edited September 27, 2001).]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!