Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Applet and Browser Proxy

831360Jan 14 2011 — edited Jan 14 2011
I have an applet that opens connections to my HTTP server to download files.

When I have a proxy on the network, and I seto this proxy in the browser's time to make the connection, it returns an error "java.io.IOException: Server returned HTTP response code: 411 for URL"

If I add an ip from my server as exception to the proxy in the browser or java plugin works fine, without error.

I can not move from machine to machine by adding an exception for the server ip.

I wanted to make my applet automatically added the exception, through parameters.

Tei use the system properties,

/ / System.setProperty ("http.proxyHost" ipHostProxy);
/ / System.setProperty ("http.proxyPort", String.valueOf (proxyPort));
/ / System.setProperty ("http.nonProxyHosts" ipHost);
/ / System.setProperty ("http.proxySet", "true ");

but had no effect.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 11 2011
Added on Jan 14 2011
1 comment
131 views