mirror of
https://github.com/curl/curl.git
synced 2026-07-24 19:37:17 +03:00
curl: use 2TLS by default
Make this the default for the curl tool (if built with HTTP/2 powers enabled) unless a specific HTTP version is requested on the command line. This should allow more users to get HTTP/2 powers without having to change anything.
This commit is contained in:
parent
4bcc532de5
commit
536f5f442e
11 changed files with 32 additions and 19 deletions
|
|
@ -46,10 +46,11 @@ Accept: */*
|
|||
</protocol>
|
||||
<stripfile>
|
||||
s/(USERAGENT, \")[^\"]+/${1}stripped/
|
||||
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
|
||||
# ignore them
|
||||
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
||||
# configurations - just ignore them
|
||||
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
||||
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
||||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
</stripfile>
|
||||
<file name="log/test1400.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -53,10 +53,11 @@ X-Men: cyclops, iceman
|
|||
|
||||
</protocol>
|
||||
<stripfile>
|
||||
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
|
||||
# ignore them
|
||||
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
||||
# configurations - just ignore them
|
||||
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
||||
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
||||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
</stripfile>
|
||||
<file name="log/test1401.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -51,10 +51,11 @@ foo=bar&baz=quux
|
|||
<stripfile>
|
||||
# curl's default user-agent varies with version, libraries etc.
|
||||
s/(USERAGENT, \")[^\"]+/${1}stripped/
|
||||
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
|
||||
# ignore them
|
||||
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
||||
# configurations - just ignore them
|
||||
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
||||
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
||||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
</stripfile>
|
||||
<file name="log/test1402.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -48,10 +48,11 @@ Accept: */*
|
|||
<stripfile>
|
||||
# curl's default user-agent varies with version, libraries etc.
|
||||
s/(USERAGENT, \")[^\"]+/${1}stripped/
|
||||
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
|
||||
# ignore them
|
||||
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
||||
# configurations - just ignore them
|
||||
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
||||
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
||||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
</stripfile>
|
||||
<file name="log/test1403.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -83,10 +83,11 @@ dummy data
|
|||
<stripfile>
|
||||
# curl's default user-agent varies with version, libraries etc.
|
||||
s/(USERAGENT, \")[^\"]+/${1}stripped/
|
||||
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
|
||||
# ignore them
|
||||
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
||||
# configurations - just ignore them
|
||||
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
||||
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
||||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
</stripfile>
|
||||
<file name="log/test1404.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -127,10 +127,11 @@ int main(int argc, char *argv[])
|
|||
# support, IOW depends on configuration - just ignore these.
|
||||
$_ = '' if /CURLOPT_USERAGENT/
|
||||
$_ = '' if /CURLOPT_MAXREDIRS/
|
||||
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
|
||||
# ignore them
|
||||
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
||||
# configurations - just ignore them
|
||||
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
||||
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
||||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
</stripfile>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -116,10 +116,11 @@ int main(int argc, char *argv[])
|
|||
<stripfile>
|
||||
# curl's default user-agent varies with version, libraries etc.
|
||||
s/(USERAGENT, \")[^\"]+/${1}stripped/
|
||||
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
|
||||
# ignore them
|
||||
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
||||
# configurations - just ignore them
|
||||
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
||||
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
||||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
</stripfile>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -94,10 +94,11 @@ int main(int argc, char *argv[])
|
|||
<stripfile>
|
||||
# curl's default user-agent varies with version, libraries etc.
|
||||
s/(USERAGENT, \")[^\"]+/${1}stripped/
|
||||
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
|
||||
# ignore them
|
||||
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
||||
# configurations - just ignore them
|
||||
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
||||
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
||||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
</stripfile>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -99,10 +99,11 @@ int main(int argc, char *argv[])
|
|||
<stripfile>
|
||||
# curl's default user-agent varies with version, libraries etc.
|
||||
s/(USERAGENT, \")[^\"]+/${1}stripped/
|
||||
# CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
|
||||
# ignore them
|
||||
# CURLOPT_SSL_VERIFYPEER, SSH_KNOWNHOSTS and HTTP_VERSION vary with
|
||||
# configurations - just ignore them
|
||||
$_ = '' if /CURLOPT_SSL_VERIFYPEER/
|
||||
$_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
||||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
</stripfile>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue