I am trying to apply the same proxy server settings on both Internet Explorer 8.0 & Mozilla Firefox 17.0.1 in Java but not sure how some of them are done such as in the following examples:
( i ) Proxy server => Use a proxy server for your LAN (These settings will not apply to dial-up or VPN connections) - checked
=>Bypass proxy server for local addresses – checked
( ii ) => Advanced => Proxy Settings => HTTP: Proxy address to use -127.0.0.1, Port – 8555
( iii ) => Exceptions, Do not use proxy server for addresses beginning with:127.0.0.1;localhost;10.*;192.168.*;127.0.0.1:895;127.0.0.1:896
( a ) Manual proxy configuration:
HTTP Proxy: 127.0.0.1, Port: 8555
( b ) No Proxy for: localhost, 127.0.0.1
Below is a general working code snippet for setting simple proxy server:
What are the remaining systems properties require to include all remaining browser configured proxy server settings into this Java program?
This is a Java jdk1.7.0_11 on Windows XP & 7 environment.
I don't have a clean example code snippet. You have to change your HTTP requests to go to the proxy server, passing the original URL as data. You can probably google up an example, or worst case, read the RFCs