Removed wget_buffer_vprintf_append, wget_buffer_printf_append,
wget_buffer_vprintf2 and wget_buffer_printf2.
Renamed their *2 counterpart to their old names.
* tests/test.c: Test query parsing in API
* tests/test-base.c: Test query handling of wget2
* include/libwget.h: Add flags to wget_iri_t,
add function wget_iri_unescape_inline()
* libwget/iri.c: Add function wget_iri_unescape_inline(),
fix wget_iri_parse() to not percent unescape query
do not add fragment in wget_iri_get_escaped_resource()
Cookies: Add new function wget_cookie_set_keep_session_cookies()
and adjust wget_cookie_db_load() and wget_cookie_db_save().
Use wget_update_file() for loading and saving.
* libwget/netrc.c: New file for netrc API functions
* include/libwget.h: Add netrc function prototypes
* libwget/Makefile.am: Add netrc.c
* libwget/test_linking.c (main): Add call to wget_netrc_deinit()
* src/options.c: Add --netrc and --netrc-file
* src/options.h: Add config.netrc and config.netrc_file
* src/wget.c (http_get): Get login/password from netrc data
* tests/test-auth-basic.c (main): Add test for --netrc-file
* include/libwget.h: Add wget_update_file()
* libwget/io.c: Add wget_update_file()
Add a function to care about locking, temp files, opening
overhead for our typical updating file database procedure.
Useful for HSTS, OCSP and Cookie file databases.
* include/libwget.h (wget_iri_set_scheme): new function.
* libwget/hsts.c (wget_hsts_host_match): HTTP default port -> HTTPS
default port
* libwget/iri.c (wget_iri_set_scheme): new function.
* src/wget.c (http_get): when changing the scheme, change the port
number as well (call wget_iri_set_scheme).
* libwget/http.h (wget_http_set_http_proxy): change the return type to int.
(wget_http_set_https_proxy): change the return type to int
* libwget/http.c (wget_http_set_http_proxy): return an error if cannot set the proxies.
(wget_http_set_https_proxy): return an error if cannot set the proxies.
* include/libwget.h: New declaration wget_http_abort_connection()
* libwget/http.c: New function wget_http_abort_connection()
* src/wget.c: Call wget_http_abort_connection() on CTRL-C