<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/tests/libtest, branch bagder/test493-https</title>
<subtitle>github.com: bagder/curl.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/'/>
<entry>
<title>urlapi: "normalize" numerical IPv4 host names</title>
<updated>2021-04-19T06:34:55+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-04-19T06:34:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=56a037cc0ad1b2a770d0c08d3d09dee1ce600f0f'/>
<id>56a037cc0ad1b2a770d0c08d3d09dee1ce600f0f</id>
<content type='text'>
When the host name in a URL is given as an IPv4 numerical address, the
address can be specified with dotted numericals in four different ways:
a32, a.b24, a.b.c16 or a.b.c.d and each part can be specified in
decimal, octal (0-prefixed) or hexadecimal (0x-prefixed).

Instead of passing on the name as-is and leaving the handling to the
underlying name functions, which made them not work with c-ares but work
with getaddrinfo, this change now makes the curl URL API itself detect
and "normalize" host names specified as IPv4 numericals.

The WHATWG URL Spec says this is an okay way to specify a host name in a
URL. RFC 3896 does not allow them, but curl didn't prevent them before
and it seems other RFC 3896-using tools have not either. Host names used
like this are widely supported by other tools as well due to the
handling being done by getaddrinfo and friends.

I decided to add the functionality into the URL API itself so that all
users of these functions get the benefits, when for example wanting to
compare two URLs. Also, it makes curl built to use c-ares now support
them as well and make curl builds more consistent.

The normalization makes HTTPS and virtual hosted HTTP work fine even
when curl gets the address specified using one of the "obscure" formats.

Test 1560 is extended to verify.

Fixes #6863
Closes #6871
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the host name in a URL is given as an IPv4 numerical address, the
address can be specified with dotted numericals in four different ways:
a32, a.b24, a.b.c16 or a.b.c.d and each part can be specified in
decimal, octal (0-prefixed) or hexadecimal (0x-prefixed).

Instead of passing on the name as-is and leaving the handling to the
underlying name functions, which made them not work with c-ares but work
with getaddrinfo, this change now makes the curl URL API itself detect
and "normalize" host names specified as IPv4 numericals.

The WHATWG URL Spec says this is an okay way to specify a host name in a
URL. RFC 3896 does not allow them, but curl didn't prevent them before
and it seems other RFC 3896-using tools have not either. Host names used
like this are widely supported by other tools as well due to the
handling being done by getaddrinfo and friends.

I decided to add the functionality into the URL API itself so that all
users of these functions get the benefits, when for example wanting to
compare two URLs. Also, it makes curl built to use c-ares now support
them as well and make curl builds more consistent.

The normalization makes HTTPS and virtual hosted HTTP work fine even
when curl gets the address specified using one of the "obscure" formats.

Test 1560 is extended to verify.

Fixes #6863
Closes #6871
</pre>
</div>
</content>
</entry>
<entry>
<title>cookie: CURLOPT_COOKIEFILE set to NULL switches off cookies</title>
<updated>2021-04-14T21:09:36+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-04-14T07:15:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=520bd5225c70a5c4cceee08f1aa7447eb0ec6653'/>
<id>520bd5225c70a5c4cceee08f1aa7447eb0ec6653</id>
<content type='text'>
Add test 676 to verify that setting CURLOPT_COOKIEFILE to NULL again clears
the cookiejar from memory.

Reported-by: Stefan Karpinski
Fixes #6889
Closes #6891
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add test 676 to verify that setting CURLOPT_COOKIEFILE to NULL again clears
the cookiejar from memory.

Reported-by: Stefan Karpinski
Fixes #6889
Closes #6891
</pre>
</div>
</content>
</entry>
<entry>
<title>copyright: update copyright year ranges to 2021</title>
<updated>2021-03-27T22:00:14+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-27T11:52:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=85e6975643fe52d6c4152969e2353f3ab8ea4554'/>
<id>85e6975643fe52d6c4152969e2353f3ab8ea4554</id>
<content type='text'>
Reviewed-by: Emil Engler
Closes #6802
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed-by: Emil Engler
Closes #6802
</pre>
</div>
</content>
</entry>
<entry>
<title>http: make 416 not fail with resume + CURLOPT_FAILONERRROR</title>
<updated>2021-03-17T07:26:46+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-16T13:41:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=6d176bee59558a1ec9dffc6633aa05e713af73f0'/>
<id>6d176bee59558a1ec9dffc6633aa05e713af73f0</id>
<content type='text'>
When asked to resume a download, libcurl will convert that to HTTP logic
and if then the entire file is already transferred it will result in a
416 response from the HTTP server. With CURLOPT_FAILONERRROR set in that
scenario, it should *not* lead to an error return.

Updated test 1156, added test 1273

Reported-by: Jonathan Watt
Fixes #6740
Closes #6753
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When asked to resume a download, libcurl will convert that to HTTP logic
and if then the entire file is already transferred it will result in a
416 response from the HTTP server. With CURLOPT_FAILONERRROR set in that
scenario, it should *not* lead to an error return.

Updated test 1156, added test 1273

Reported-by: Jonathan Watt
Fixes #6740
Closes #6753
</pre>
</div>
</content>
</entry>
<entry>
<title>configure: provide Largefile feature for curl-config</title>
<updated>2021-03-11T09:12:30+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-09T23:38:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=dcccd8dd25a8e9d476f9bda94f9ebfd0b9f472db'/>
<id>dcccd8dd25a8e9d476f9bda94f9ebfd0b9f472db</id>
<content type='text'>
... as cmake now does it correctly, and make test1014 check for it

Closes #6702
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... as cmake now does it correctly, and make test1014 check for it

Closes #6702
</pre>
</div>
</content>
</entry>
<entry>
<title>lib1536: check ptr against NULL before dereferencing it</title>
<updated>2021-03-10T13:03:57+00:00</updated>
<author>
<name>kokke</name>
<email>spam@rowdy.dk</email>
</author>
<published>2021-03-09T13:25:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=4088b25b337d67fa34e96e90cf98dd3865ce2d33'/>
<id>4088b25b337d67fa34e96e90cf98dd3865ce2d33</id>
<content type='text'>
Closes #6710
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #6710
</pre>
</div>
</content>
</entry>
<entry>
<title>lib1537: check ptr against NULL before dereferencing it</title>
<updated>2021-03-10T13:01:55+00:00</updated>
<author>
<name>kokke</name>
<email>spam@rowdy.dk</email>
</author>
<published>2021-03-09T13:10:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=b2d906754c3686fed0249b2dbe9f5a2a296c40e6'/>
<id>b2d906754c3686fed0249b2dbe9f5a2a296c40e6</id>
<content type='text'>
Fixes #6707
Closes #6708
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #6707
Closes #6708
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: reduce variable scopes</title>
<updated>2021-02-10T15:47:09+00:00</updated>
<author>
<name>Marcel Raad</name>
<email>Marcel.Raad@teamviewer.com</email>
</author>
<published>2021-02-06T10:30:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=4c02d003ff581166d8adf43cd1606eaa4ace945d'/>
<id>4c02d003ff581166d8adf43cd1606eaa4ace945d</id>
<content type='text'>
Closes https://github.com/curl/curl/pull/6576
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes https://github.com/curl/curl/pull/6576
</pre>
</div>
</content>
</entry>
<entry>
<title>ftp: add 'prefer_ascii' to the transfer state struct</title>
<updated>2021-02-09T13:06:28+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-02-08T14:56:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=115c9e27f53809a254fba44b023bea92f4d4dcd0'/>
<id>115c9e27f53809a254fba44b023bea92f4d4dcd0</id>
<content type='text'>
... and make sure the code never updates 'set.prefer_ascii' as it breaks
handle reuse which should use the setting as the user specified it.

Added test 1569 to verify: it first makes an FTP transfer with ';type=A'
and then another without type on the same handle and the second should
then use binary. Previously, curl failed this.

Closes #6578
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... and make sure the code never updates 'set.prefer_ascii' as it breaks
handle reuse which should use the setting as the user specified it.

Added test 1569 to verify: it first makes an FTP transfer with ';type=A'
and then another without type on the same handle and the second should
then use binary. Previously, curl failed this.

Closes #6578
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: fixup several tests</title>
<updated>2021-02-08T23:28:19+00:00</updated>
<author>
<name>Fabian Keil</name>
<email>fk@fabiankeil.de</email>
</author>
<published>2020-02-28T14:00:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=124198631b042830ba8019bd7842de92c0853fc5'/>
<id>124198631b042830ba8019bd7842de92c0853fc5</id>
<content type='text'>
missing CRs and modified %hostip

lib556/test556: use a real HTTP version to make test reuse more convenient

make sure the weekday in Date headers matches the date

test61: replace stray "^M" (5e 4d) at the end of a cookie with a '^M' (0d)

Gets the test working with external proxies like Privoxy again.

Closes #6463
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
missing CRs and modified %hostip

lib556/test556: use a real HTTP version to make test reuse more convenient

make sure the weekday in Date headers matches the date

test61: replace stray "^M" (5e 4d) at the end of a cookie with a '^M' (0d)

Gets the test working with external proxies like Privoxy again.

Closes #6463
</pre>
</div>
</content>
</entry>
</feed>
