Connecting Through a Proxy
If your application has to pass through a proxy before connecting to a secure server, follow these steps:
1. Set up an insecure connection (normally port 80).
2. Ask the proxy to connect to the secure server (normally port 443).
When the proxy establishes the connection to the secure server, the proxy no longer exists, as far as your application is concerned—all communication goes directly to the secure server.