aspose file tools*
The moose likes Java in General and the fly likes Swing Browser Extension Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Swing Browser Extension" Watch "Swing Browser Extension" New topic
Author

Swing Browser Extension

Eswar Varanasi
Greenhorn

Joined: Jun 03, 2007
Posts: 20
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

Joined: Oct 27, 2005
Posts: 19720
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: Swing Browser Extension