• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Swing Browser Extension

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I am mighty! And this is a mighty small ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic