• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

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: 22250
117
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic