• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading proxy settings and applying in URL connection

 
dema rogatkin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just want to save some time dealing with search engines. For Windows platform primary, but for some others can be good too. I want to apply proxy settings to URL connection based on proxy settings set for IE/FF or other browser. I guess I can use package java.util.prefs for reading Windows Registry for proxy setting values. Then I can use
System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", "proxyhost" );
System.getProperties().put( "proxyPort", "proxy port" );
Will it be sufficient? What about authentication? Should I set
connection.setRequestProperty( "Proxy-Authorization", login_password ); for every time when I do connection? Or these values can be preset?
 
ganesh pol
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think following link has solution to our problem web page

please post the code if u find one
[ May 19, 2006: Message edited by: ganesh pol ]
 
dema rogatkin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
used MSN search and found :

So I expect that call

Should return current proxy settings. let me check.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic