diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-10-09 06:52:37 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-10-09 06:52:37 +0000 |
commit | a9181f8f00d5bdfda39e227ed2ec4076ee4d2baa (patch) | |
tree | e7f0023696b916783bbea5546a205a24f648301b /lib/url.c | |
parent | 3685f792cbd271ecdc623de2e0b48e1debab6109 (diff) |
added the option CURLOPT_HTTP_VERSION that can specify which HTTP version
libcurl should use in its request
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -444,6 +444,13 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) */ data->set.http_follow_location = va_arg(param, long)?TRUE:FALSE; break; + case CURLOPT_HTTP_VERSION: + /* + * This sets a requested HTTP version to be used. The value is one of + * the listed enums in curl/curl.h. + */ + data->set.httpversion = va_arg(param, long); + break; case CURLOPT_TRANSFERTEXT: /* * This option was previously named 'FTPASCII'. Renamed to work with @@ -461,15 +468,6 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...) if(va_arg(param, long)) data->set.httpreq = HTTPREQ_PUT; break; -#if 0 - /* obsolete stuff, kept here a while for informational purposes */ - case CURLOPT_MUTE: - /* - * Stay absolutely quiet. - */ - data->set.mute = va_arg(param, long)?TRUE:FALSE; - break; -#endif case CURLOPT_TIMECONDITION: /* * Set HTTP time condition. This must be one of the defines in the |