When I encountered such a problem, I had to encode my http level (via HTTP CONNECT) and use the existing sock layer (in the standard library). However, the main problem is to get proxy settings. As far as I did this for the Web Start application, I could use the default browser settings.
source
share