I have a Linux server S in JP WEST, which can connect to Google.
Then I setup a proxy.py, a single file web proxy which support HTTPS, at S:8080.
Then I use SwitchySharp locally and set S:8080 as proxy server.
However, when I open Google in browser and search something, the connection is closed.
Checked proxy.py log, it should be because the communication between local machine and S was detected contains Google in plain text. Then I understand what happened on the wire.
Then I use Putty to setup SSH Tunnel, map local:1234 to S:8080, and set localhost:1234 as proxy in SwitchSharp.
Finally the information goes like this: my browser -- local proxy at localhost:1234 -- remote proxy at S:8080 -- internet