[u203-01@comp-Pentium-Dual-5e604b ~]$ export https_proxy=192.168.0.1:3128
[u203-01@comp-Pentium-Dual-5e604b ~]$ curl -v https://gmail.com
* About to connect() to proxy 192.168.0.1 port 3128 (#0)
* Trying 192.168.0.1... connected
* Connected to 192.168.0.1 (192.168.0.1) port 3128 (#0)
* Establish HTTP proxy tunnel to gmail.com:443
> CONNECT gmail.com:443 HTTP/1.1
> Host: gmail.com:443
> User-Agent: curl/7.19.7-CVS (i586-alt-linux-gnu) libcurl/7.19.7-CVS OpenSSL/0.9.8p zlib/1.2.3 c-ares/1.6.0 libidn/1.15
> Proxy-Connection: Keep-Alive
>
< HTTP/1.0 200 Connection established
<
* Proxy replied OK to CONNECT request
* successfully set certificate verify locations:
* CAfile: /usr/share/ca-certificates/ca-bundle.crt
CApath: none
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=gmail.com
* start date: 2013-01-03 12:14:42 GMT
* expire date: 2013-06-07 19:43:27 GMT
* subjectAltName: gmail.com matched
* issuer: C=US; O=Google Inc; CN=Google Internet Authority
* SSL certificate verify ok.
> GET / HTTP/1.1
> User-Agent: curl/7.19.7-CVS (i586-alt-linux-gnu) libcurl/7.19.7-CVS OpenSSL/0.9.8p zlib/1.2.3 c-ares/1.6.0 libidn/1.15
> Host: gmail.com
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Location: https://mail.google.com/mail/
< Content-Type: text/html; charset=UTF-8
< X-Content-Type-Options: nosniff
< Date: Mon, 17 Dec 2012 14:27:47 GMT
< Expires: Wed, 16 Jan 2013 14:27:47 GMT
< Server: sffe
< Content-Length: 226
< X-XSS-Protection: 1; mode=block
< Cache-Control: public, max-age=2592000
< Age: 2487594
<
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://mail.google.com/mail/">here</A>.
</BODY></HTML>
* Connection #0 to host 192.168.0.1 left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
[u203-01@comp-Pentium-Dual-5e604b ~]$