Applet and Browser Proxy
831360Jan 14 2011 — edited Jan 14 2011I 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.