]> git.ipfire.org Git - thirdparty/curl.git/commit
CURLOPT_DEFAULT_PROTOCOL: added
authorNathaniel Waisbrot <code@waisbrot.net>
Sun, 23 Aug 2015 01:49:26 +0000 (21:49 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 23 Aug 2015 01:57:14 +0000 (21:57 -0400)
commit9756d1da7637d1913b7ca2b589e4635f32ed3e00
tree4ab19870277d1b8307233356ec59415346bd843b
parent22cb63119889f57019449c9412f69a1e07ada696
CURLOPT_DEFAULT_PROTOCOL: added

- Add new option CURLOPT_DEFAULT_PROTOCOL to allow specifying a default
protocol for schemeless URLs.

- Add new tool option --proto-default to expose
CURLOPT_DEFAULT_PROTOCOL.

In the case of schemeless URLs libcurl will behave in this way:

When the option is used libcurl will use the supplied default.

When the option is not used, libcurl will follow its usual plan of
guessing from the hostname and falling back to 'http'.
21 files changed:
docs/curl.1
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_DEFAULT_PROTOCOL.3 [new file with mode: 0644]
docs/libcurl/opts/CURLOPT_URL.3
docs/libcurl/opts/Makefile.am
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/url.c
lib/urldata.h
src/tool_cfgable.c
src/tool_cfgable.h
src/tool_getparam.c
src/tool_getparam.h
src/tool_help.c
src/tool_helpers.c
src/tool_operate.c
src/tool_paramhlp.c
src/tool_paramhlp.h
tests/data/Makefile.inc
tests/data/test2044 [new file with mode: 0644]
tests/data/test2045 [new file with mode: 0644]