curl-library
Proxy CONNECT over SSL channel
Date: Mon, 10 Sep 2012 17:29:14 +0200
Hi all,
I want to send the proxy CONNECT over HTTPS connection as our proxy refuses
connection if it sees it in clear text. I observed that libcurl is not
re-using the connection but creates a new one (HTTP - clear text) before it
sending the CONNECT.
An SSL connection *#0* exists to the subject server (used for another
purpose before the proxy CONNECT is used). See the logs at the end. I am
using the easy interface for libcurl. Is it possible to achieve what I am
looking for?
Looking forward to your suggestions.
BR,
O.
* About to connect() to proxy xyz.com port 443 (*#1*)
* Trying 1.2.3.4... * connected
* Establish HTTP proxy tunnel to xyz.com:443
* Proxy auth using Basic with user '523fb973073fc847289d233369184b218713086'
> CONNECT xyz.com:443 HTTP/1.1
Proxy-Authorization: Basic
NTIzZmI5NzMwNzNmYzg0NzI4OWQyMzMzNjkxODRiMjE4NzEzMDg2OjF4a25zeXViNnVib2h0bGwzdTRzcjFoa2I=
Proxy-Connection: Keep-Alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
Connection: keep-alive
Host: xyz.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101
Firefox/9.0.1
<
* Proxy CONNECT aborted
* Closing connection #1
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-10