mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:23:31 +03:00
setopt: add CURLOPT_PROTOCOLS_STR and CURLOPT_REDIR_PROTOCOLS_STR
... as replacements for deprecated CURLOPT_PROTOCOLS and CURLOPT_REDIR_PROTOCOLS as these new ones do not risk running into the 32 bit limit the old ones are facing. CURLINFO_PROTCOOL is now deprecated. The curl tool is updated to use the new options. Added test 1597 to verify the libcurl protocol parser. Closes #8992
This commit is contained in:
parent
193215db3c
commit
e6f8445ede
24 changed files with 487 additions and 45 deletions
|
|
@ -1989,9 +1989,10 @@ static CURLcode single_transfer(struct GlobalConfig *global,
|
|||
my_setopt(curl, CURLOPT_NEW_FILE_PERMS, config->create_file_mode);
|
||||
|
||||
if(config->proto_present)
|
||||
my_setopt_flags(curl, CURLOPT_PROTOCOLS, config->proto);
|
||||
my_setopt_str(curl, CURLOPT_PROTOCOLS_STR, config->proto_str);
|
||||
if(config->proto_redir_present)
|
||||
my_setopt_flags(curl, CURLOPT_REDIR_PROTOCOLS, config->proto_redir);
|
||||
my_setopt_str(curl, CURLOPT_REDIR_PROTOCOLS_STR,
|
||||
config->proto_redir_str);
|
||||
|
||||
if(config->content_disposition
|
||||
&& (urlnode->flags & GETOUT_USEREMOTE))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue