diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-02-02 16:19:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-02-02 16:19:23 +0000 |
commit | bdd4294e79eea15cb6f312f7ee7d388ad40a65e3 (patch) | |
tree | bfd4285bac21f3c71ad770df722bf87ed0d14c42 /include | |
parent | dcf92bffd2a22909a44b45bd7490e2575e14f82c (diff) |
- Craig A West brought us: libcurl now defaults to do CONNECT with HTTP
version 1.1 instead of 1.0 like before. This change also introduces the new
proxy type for libcurl called 'CURLPROXY_HTTP_1_0' that then allows apps to
switch (back) to CONNECT 1.0 requests. The curl tool also got a --proxy1.0
option that works exactly like --proxy but sets CURLPROXY_HTTP_1_0.
I updated all test cases cases that use CONNECT and I tried to do some using
--proxy1.0 and some updated to do CONNECT 1.1 to get both versions run.
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index 005a613f0..71283c0ed 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -459,7 +459,10 @@ typedef CURLcode (*curl_ssl_ctx_callback)(CURL *curl, /* easy handle */ void *userptr); typedef enum { - CURLPROXY_HTTP = 0, /* added in 7.10 */ + CURLPROXY_HTTP = 0, /* added in 7.10, new in 7.19.4 default is to use + CONNECT HTTP/1.1 */ + CURLPROXY_HTTP_1_0 = 1, /* added in 7.19.4, force to use CONNECT + HTTP/1.0 */ CURLPROXY_SOCKS4 = 4, /* support added in 7.15.2, enum existed already in 7.10 */ CURLPROXY_SOCKS5 = 5, /* added in 7.10 */ |