This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing Browser Extension

 
Eswar Varanasi
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I tried to create a swing browser. I've proxy which restricts the access to internet even after setting the basic proxy settings:

-------------------------------------------------------------------------
URLConnection urlConn = pageUrl.openConnection();
String encodedPassword = "+yo0QiEJIdQQEINb9THLlmAw3LmZCL54mWuE0uoJQpWj5DCcWBwBHQ==";

******* ( encoded Password & username to base64 )

urlConn.setRequestProperty("Proxy-Authorization",encodedPassword);
Properties systemProperties = System.getProperties();
systemProperties.put("proxySet","true");
systemProperties.put("proxyHost","xxx.xxx.xxx.xxx");
systemProperties.put("proxyPort","80");

Can any one assist me how to connect to proxy... i'm getting the home page/login screen of the proxy server ( may be the home page of that proxy server...used 80 port)

Any assistance is greatly appreciated... :-)

thanks,
Ravi.
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was about to say UseOneThreadPerQuestion, seeing as this is related to your other question. However, unlike the other problem this is not Swing related anymore, so let's keep these as two distinct questions.

This thread is off to the intermediate forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic