• Post Reply Bookmark Topic Watch Topic
  • New Topic

Access to website with proxy using Java Code  RSS feed

 
Richi Varma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using proxy server for accessing internet then you need to put proxy setting in java code for accessing website

System.setProperty("http.proxyHost", "PROXY Server NAME ");
System.setProperty("http.proxyPort", "PROXY Server PORT")

======================================Code Start============================



[NK: Please UseCodeTags]
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are these words of wisdom or you are trying to ask a question?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!