<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/lib/http.c, 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>hsts: enable by default</title>
<updated>2021-04-19T06:22:16+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-08T07:30:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=d71ff2b9db566b3f4b2eb29441c2df86715d4339'/>
<id>d71ff2b9db566b3f4b2eb29441c2df86715d4339</id>
<content type='text'>
No longer considered experimental.

Closes #6700
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No longer considered experimental.

Closes #6700
</pre>
</div>
</content>
</entry>
<entry>
<title>send_speed: simplify the checks for if a speed limit is set</title>
<updated>2021-03-27T11:38:28+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-26T12:08:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=b5726e5549a45671391e88e45b9e0702ff4e7a28'/>
<id>b5726e5549a45671391e88e45b9e0702ff4e7a28</id>
<content type='text'>
... as we know the value cannot be set to negative: enforced by
setopt()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... as we know the value cannot be set to negative: enforced by
setopt()
</pre>
</div>
</content>
</entry>
<entry>
<title>http: cap body data amount during send speed limiting</title>
<updated>2021-03-27T11:38:15+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-26T09:06:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=24e469f6d61635f85bd4a0845c07aef0c6be661b'/>
<id>24e469f6d61635f85bd4a0845c07aef0c6be661b</id>
<content type='text'>
By making sure never to send off more than the allowed number of bytes
per second the speed limit logic is given more room to actually work.

Reported-by: Fabian Keil
Bug: https://curl.se/mail/lib-2021-03/0042.html
Closes #6797
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By making sure never to send off more than the allowed number of bytes
per second the speed limit logic is given more room to actually work.

Reported-by: Fabian Keil
Bug: https://curl.se/mail/lib-2021-03/0042.html
Closes #6797
</pre>
</div>
</content>
</entry>
<entry>
<title>urldata: merge "struct DynamicStatic" into "struct UrlState"</title>
<updated>2021-03-26T22:19:20+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-26T13:25:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=95cbcec8f986492766c4be3922af1e7644e1e7c5'/>
<id>95cbcec8f986492766c4be3922af1e7644e1e7c5</id>
<content type='text'>
Both were used for the same purposes and there was no logical separation
between them. Combined, this also saves 16 bytes in less holes in my
test build.

Closes #6798
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both were used for the same purposes and there was no logical separation
between them. Combined, this also saves 16 bytes in less holes in my
test build.

Closes #6798
</pre>
</div>
</content>
</entry>
<entry>
<title>http: strip default port from URL sent to proxy</title>
<updated>2021-03-23T12:33:49+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-22T23:24:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=3bbf62b5a4af05fc60f67de924c72c576779d560'/>
<id>3bbf62b5a4af05fc60f67de924c72c576779d560</id>
<content type='text'>
To make sure the Host: header and the URL provide the same authority
portion when sent to the proxy, strip the default port number from the
URL if one was provided.

Reported-by: Michael Brown
Fixes #6769
Closes #6778
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To make sure the Host: header and the URL provide the same authority
portion when sent to the proxy, strip the default port number from the
URL if one was provided.

Reported-by: Michael Brown
Fixes #6769
Closes #6778
</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>http: remove superfluous NULL assign</title>
<updated>2021-03-11T21:45:23+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-03-11T15:04:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=4c0206f90bd0e15acc1031c2011d8a8903d2c911'/>
<id>4c0206f90bd0e15acc1031c2011d8a8903d2c911</id>
<content type='text'>
Closes #6727
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #6727
</pre>
</div>
</content>
</entry>
<entry>
<title>http2: remove conn-&gt;data use</title>
<updated>2021-02-15T15:33:53+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-02-15T07:35:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=723c0e75fa3e74cdad5ad2b3c130f9b974e89ef1'/>
<id>723c0e75fa3e74cdad5ad2b3c130f9b974e89ef1</id>
<content type='text'>
... but instead use a private alternative that points to the "driving
transfer" from the connection. We set the "user data" associated with
the connection to be the connectdata struct, but when we drive transfers
the code still needs to know the pointer to the transfer. We can change
the user data to become the Curl_easy handle, but with older nghttp2
version we cannot dynamically update that pointer properly when
different transfers are used over the same connection.

Closes #6520
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... but instead use a private alternative that points to the "driving
transfer" from the connection. We set the "user data" associated with
the connection to be the connectdata struct, but when we drive transfers
the code still needs to know the pointer to the transfer. We can change
the user data to become the Curl_easy handle, but with older nghttp2
version we cannot dynamically update that pointer properly when
different transfers are used over the same connection.

Closes #6520
</pre>
</div>
</content>
</entry>
<entry>
<title>http: use credentials from transfer, not connection</title>
<updated>2021-02-13T21:36:15+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-02-12T09:27:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=46620b97431e19c53ce82e55055c85830f088cf4'/>
<id>46620b97431e19c53ce82e55055c85830f088cf4</id>
<content type='text'>
HTTP auth "accidentally" worked before this cleanup since the code would
always overwrite the connection credentials with the credentials from
the most recent transfer and since HTTP auth is typically done first
thing, this has not been an issue. It was still wrong and subject to
possible race conditions or future breakage if the sequence of functions
would change.

The data.set.str[] strings MUST remain unmodified exactly as set by the
user, and the credentials to use internally are instead set/updated in
state.aptr.*

Added test 675 to verify different credentials used in two requests done
over a reused HTTP connection, which previously behaved wrongly.

Fixes #6542
Closes #6545
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
HTTP auth "accidentally" worked before this cleanup since the code would
always overwrite the connection credentials with the credentials from
the most recent transfer and since HTTP auth is typically done first
thing, this has not been an issue. It was still wrong and subject to
possible race conditions or future breakage if the sequence of functions
would change.

The data.set.str[] strings MUST remain unmodified exactly as set by the
user, and the credentials to use internally are instead set/updated in
state.aptr.*

Added test 675 to verify different credentials used in two requests done
over a reused HTTP connection, which previously behaved wrongly.

Fixes #6542
Closes #6545
</pre>
</div>
</content>
</entry>
<entry>
<title>urldata: don't touch data-&gt;set.httpversion at run-time</title>
<updated>2021-02-12T07:13:37+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2021-02-11T15:30:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=88dd1a8a115b1f5ece26fd8941b4464973b7d913'/>
<id>88dd1a8a115b1f5ece26fd8941b4464973b7d913</id>
<content type='text'>
Rename it to 'httpwant' and make a cloned field in the state struct as
well for run-time updates.

Also: refuse non-supported HTTP versions. Verified with test 129.

Closes #6585
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename it to 'httpwant' and make a cloned field in the state struct as
well for run-time updates.

Also: refuse non-supported HTTP versions. Verified with test 129.

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