curl/docs/libcurl
Alex Rousskov cb4e2be7c6 proxy: Support HTTPS proxy and SOCKS+HTTP(s)
* HTTPS proxies:

An HTTPS proxy receives all transactions over an SSL/TLS connection.
Once a secure connection with the proxy is established, the user agent
uses the proxy as usual, including sending CONNECT requests to instruct
the proxy to establish a [usually secure] TCP tunnel with an origin
server. HTTPS proxies protect nearly all aspects of user-proxy
communications as opposed to HTTP proxies that receive all requests
(including CONNECT requests) in vulnerable clear text.

With HTTPS proxies, it is possible to have two concurrent _nested_
SSL/TLS sessions: the "outer" one between the user agent and the proxy
and the "inner" one between the user agent and the origin server
(through the proxy). This change adds supports for such nested sessions
as well.

A secure connection with a proxy requires its own set of the usual SSL
options (their actual descriptions differ and need polishing, see TODO):

  --proxy-cacert FILE        CA certificate to verify peer against
  --proxy-capath DIR         CA directory to verify peer against
  --proxy-cert CERT[:PASSWD] Client certificate file and password
  --proxy-cert-type TYPE     Certificate file type (DER/PEM/ENG)
  --proxy-ciphers LIST       SSL ciphers to use
  --proxy-crlfile FILE       Get a CRL list in PEM format from the file
  --proxy-insecure           Allow connections to proxies with bad certs
  --proxy-key KEY            Private key file name
  --proxy-key-type TYPE      Private key file type (DER/PEM/ENG)
  --proxy-pass PASS          Pass phrase for the private key
  --proxy-ssl-allow-beast    Allow security flaw to improve interop
  --proxy-sslv2              Use SSLv2
  --proxy-sslv3              Use SSLv3
  --proxy-tlsv1              Use TLSv1
  --proxy-tlsuser USER       TLS username
  --proxy-tlspassword STRING TLS password
  --proxy-tlsauthtype STRING TLS authentication type (default SRP)

All --proxy-foo options are independent from their --foo counterparts,
except --proxy-crlfile which defaults to --crlfile and --proxy-capath
which defaults to --capath.

Curl now also supports %{proxy_ssl_verify_result} --write-out variable,
similar to the existing %{ssl_verify_result} variable.

Supported backends: OpenSSL, GnuTLS, and NSS.

* A SOCKS proxy + HTTP/HTTPS proxy combination:

If both --socks* and --proxy options are given, Curl first connects to
the SOCKS proxy and then connects (through SOCKS) to the HTTP or HTTPS
proxy.

TODO: Update documentation for the new APIs and --proxy-* options.
Look for "Added in 7.XXX" marks.
2016-11-24 23:41:44 +01:00
..
opts proxy: Support HTTPS proxy and SOCKS+HTTP(s) 2016-11-24 23:41:44 +01:00
.gitignore docs/libcurl: gitignore libcurl-symbols.3 2015-04-29 13:51:42 -04:00
ABI ABI doc: use secure URL 2015-07-30 15:02:44 +02:00
Makefile.am dist: remove PDF and HTML converted docs from the releases 2016-10-10 23:33:13 +02:00
curl_easy_cleanup.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_duphandle.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_escape.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_getinfo.3 proxy: Support HTTPS proxy and SOCKS+HTTP(s) 2016-11-24 23:41:44 +01:00
curl_easy_init.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_pause.3 curl_easy_pause.3: fix man page reference 2016-05-01 23:24:09 +02:00
curl_easy_perform.3 docs: unified man page references to use \fI 2016-05-02 09:09:59 +02:00
curl_easy_recv.3 docs: unified man page references to use \fI 2016-05-02 09:09:59 +02:00
curl_easy_reset.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_send.3 docs: unified man page references to use \fI 2016-05-02 09:09:59 +02:00
curl_easy_setopt.3 proxy: Support HTTPS proxy and SOCKS+HTTP(s) 2016-11-24 23:41:44 +01:00
curl_easy_strerror.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_easy_unescape.3 unescape: avoid integer overflow 2016-10-31 08:46:35 +01:00
curl_escape.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_formadd.3 curl_formadd.3: *_FILECONTENT and *_FILE need the file to be kept 2016-11-08 15:28:04 +01:00
curl_formfree.3 docs: unified man page references to use \fI 2016-05-02 09:09:59 +02:00
curl_formget.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_free.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_getdate.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_getenv.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_global_cleanup.3 curl_global_cleanup.3: don't unload the lib with sub threads running 2016-09-20 23:00:52 +02:00
curl_global_init.3 curl_global_init.3: improved formatting of the flags 2016-06-29 16:00:46 +02:00
curl_global_init_mem.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_mprintf.3 curl/mprintf.h: remove support for _MPRINTF_REPLACE 2016-04-01 10:46:36 +02:00
curl_multi_add_handle.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_assign.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_cleanup.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_fdset.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_info_read.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_init.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_perform.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_remove_handle.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_setopt.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_socket.3 docs: unified man page references to use \fI 2016-05-02 09:09:59 +02:00
curl_multi_socket_action.3 curl_multi_socket_action.3: Fix rewording 2016-06-09 02:10:22 -04:00
curl_multi_socket_all.3 The inital early embryos to describe the curl_multi_socket() API. Committed 2005-12-22 15:11:11 +00:00
curl_multi_strerror.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_multi_timeout.3 docs: unified man page references to use \fI 2016-05-02 09:09:59 +02:00
curl_multi_wait.3 curl_multi_wait.3: add example 2016-03-09 08:35:17 +01:00
curl_share_cleanup.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_share_init.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_share_setopt.3 curl_share_setopt.3: Add min ver needed for ssl session lock 2016-05-29 16:27:44 -04:00
curl_share_strerror.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_slist_append.3 docs: unified man page references to use \fI 2016-05-02 09:09:59 +02:00
curl_slist_free_all.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_strequal.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_strnequal.3 prepend the man3 dir to the file name to work better. 2004-04-02 11:04:34 +00:00
curl_unescape.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_version.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
curl_version_info.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
getinfo-times getinfo-times: Typo fixed 2014-08-29 16:41:17 +02:00
index.html libcurl-thread.3: Consolidate thread safety info 2015-07-28 13:57:06 +02:00
libcurl-easy.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
libcurl-errors.3 errors: new alias CURLE_WEIRD_SERVER_REPLY (8) 2016-09-07 21:24:27 -04:00
libcurl-multi.3 libcurl-multi.3: fix small typo 2016-06-01 23:04:16 +02:00
libcurl-share.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
libcurl-thread.3 libcurl-tlibcurl-thread: Update OpenSSL links 2016-05-13 16:01:35 -04:00
libcurl-tutorial.3 URLs: change more http to https 2016-02-04 18:46:54 -05:00
libcurl.3 URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
libcurl.m4 libcurl.m4: Avoid obsolete warning 2016-05-20 16:05:39 +02:00
mksymbolsmanpage.pl URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00
symbols-in-versions proxy: Support HTTPS proxy and SOCKS+HTTP(s) 2016-11-24 23:41:44 +01:00
symbols.pl URLs: change all http:// URLs to https:// 2016-02-03 00:19:02 +01:00