mirror of
https://github.com/curl/curl.git
synced 2026-08-02 12:20:28 +03:00
added the option CURLOPT_HTTP_VERSION that can specify which HTTP version
libcurl should use in its request
This commit is contained in:
parent
3685f792cb
commit
a9181f8f00
3 changed files with 16 additions and 12 deletions
16
lib/url.c
16
lib/url.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue