#
854ec765 |
| 01-Apr-2022 |
Daniel Stenberg |
http: streamclose "already downloaded" Instead of connclose()ing, since when HTTP/2 is used it doesn't need to close the connection as stopping the current transfer is enough. R
http: streamclose "already downloaded" Instead of connclose()ing, since when HTTP/2 is used it doesn't need to close the connection as stopping the current transfer is enough. Reported-by: Evangelos Foutras Closes #8665
show more ...
|
#
218cc700 |
| 01-Apr-2022 |
Daniel Stenberg |
http: correct the header error message to say colon Not semicolon Reported-by: Gisle Vanem Ref: #8666 Closes #8667
|
#
b716b5aa |
| 01-Apr-2022 |
Daniel Stenberg |
lib: #ifdef on USE_HTTP2 better ... as nghttp2 might not be the library that provides HTTP/2 support. Closes #8661
|
#
3fa634a3 |
| 01-Apr-2022 |
Daniel Stenberg |
http: close the stream (not connection) on time condition abort Closes #8664
|
#
d1e4a677 |
| 17-Mar-2022 |
Daniel Stenberg |
header api: add curl_easy_header and curl_easy_nextheader Add test 1940 to 1946 to verify. Closes #8593
|
#
dcdf2e8a |
| 18-Mar-2022 |
Daniel Stenberg |
http: return error on colon-less HTTP headers It's a protocol violation and accepting them leads to no good. Add test case 398 to verify Closes #8610
|
#
526e0ef4 |
| 16-Mar-2022 |
Daniel Stenberg |
http: reject header contents with nul bytes They are not allowed by the protocol and allowing them risk that curl misbehaves somewhere where C functions are used but won't work on the
http: reject header contents with nul bytes They are not allowed by the protocol and allowing them risk that curl misbehaves somewhere where C functions are used but won't work on the full contents. Further, they are not supported by hyper and they cause problems for the new coming headers API work. Updated test 262 to verify and enabled it for hyper as well Closes #8601
show more ...
|
#
8984a42a |
| 16-Feb-2022 |
Daniel Stenberg |
http: fix "unused parameter ‘conn’" warning Follow-up from 7d600ad1c395 Spotted on appveyor Closes #8465
|
#
7d600ad1 |
| 14-Feb-2022 |
Daniel Stenberg |
urldata: remove conn->bits.user_passwd The authentication status should be told by the transfer and not the connection. Reported-by: John H. Ayad Fixes #8449 Closes #8451
|
#
9bc3cebc |
| 08-Feb-2022 |
HenrikHolst |
misc: remove strlen for Curl_checkheaders + Curl_checkProxyheaders Closes #8409
|
#
b8072192 |
| 07-Feb-2022 |
HenrikHolst |
misc: reduce strlen() calls with Curl_dyn_add() Use STRCONST() to switch from Curl_dyn_add() to Curl_dyn_addn() for string literals. Closes #8398
|
#
4028892f |
| 04-Feb-2022 |
HenrikHolst |
http: make Curl_compareheader() take string length arguments too Also add STRCONST, a macro that returns a string literal and it's length for functions that take "string,len" Re
http: make Curl_compareheader() take string length arguments too Also add STRCONST, a macro that returns a string literal and it's length for functions that take "string,len" Removes unnecesary calls to strlen(). Closes #8391
show more ...
|
#
c85178a9 |
| 05-Feb-2022 |
Daniel Stenberg |
http2: allow CURLOPT_HTTPHEADER change ":scheme" The only h2 psuedo header that wasn't previously possible to change by a user. This change also makes it impossible to send a HTTP/1 head
http2: allow CURLOPT_HTTPHEADER change ":scheme" The only h2 psuedo header that wasn't previously possible to change by a user. This change also makes it impossible to send a HTTP/1 header that starts with a colon, which I don't think anyone does anyway. The other pseudo headers are possible to change indirectly by doing the rightly crafted request. Reported-by: siddharthchhabrap on github Fixes #8381 Closes #8393
show more ...
|
#
26101421 |
| 03-Feb-2022 |
Daniel Stenberg |
lib: remove support for CURL_DOES_CONVERSIONS TPF was the only user and support for that was dropped. Closes #8378
|
#
519b62cc |
| 21-Jan-2022 |
lucas |
docs: update IETF links to use datatracker The tools.ietf.org domain has been deprecated a while now, with the links being redirected to datatracker.ietf.org. Rather than make p
docs: update IETF links to use datatracker The tools.ietf.org domain has been deprecated a while now, with the links being redirected to datatracker.ietf.org. Rather than make people eat that redirect time, this change switches the URL to a more canonical source. Closes #8317
show more ...
|
#
21248e05 |
| 25-Dec-2021 |
Daniel Stenberg |
checksrc: detect more kinds of NULL comparisons we avoid Co-authored-by: Jay Satiro Closes #8180
|
#
1b9f1f60 |
| 20-Dec-2021 |
Vladimir Panteleev |
http: Fix CURLOPT_HTTP200ALIASES The httpcode < 100 check was also triggered when none of the fields were parsed, thus making the if(!nc) block unreachable. Closes #8171
|
#
6e061ae6 |
| 19-Nov-2021 |
Daniel Stenberg |
http: enable haproxy support for hyper backend This is done by having native code do the haproxy header output before hyper issues its request. The little downside with this approach is
http: enable haproxy support for hyper backend This is done by having native code do the haproxy header output before hyper issues its request. The little downside with this approach is that we need the entire Curl_buffer_send() function built, which is otherwise not used for hyper builds. If hyper ends up getting native support for the haproxy protocols we can backpedal on this. Enables test 1455 and 1456 Closes #8034
show more ...
|
#
c67a32fc |
| 26-Oct-2021 |
Daniel Stenberg |
http: reject HTTP response codes < 100 ... which then also includes negative ones as test 1430 uses. This makes native + hyper backend act identically on this and therefore test
http: reject HTTP response codes < 100 ... which then also includes negative ones as test 1430 uses. This makes native + hyper backend act identically on this and therefore test 1430 can now be enabled when building with hyper. Adjust test 1431 as well. Closes #7909
show more ...
|
#
b1d08d29 |
| 01-Oct-2021 |
Jay Satiro |
http: set content length earlier - Make content length (ie download size) accessible to the user in the header callback, but only after all headers have been processed (ie only i
http: set content length earlier - Make content length (ie download size) accessible to the user in the header callback, but only after all headers have been processed (ie only in the final call to the header callback). Background: For a long time the content length could be retrieved in the header callback via CURLINFO_CONTENT_LENGTH_DOWNLOAD_T as soon as it was parsed by curl. Changes were made in 8a16e54 (precedes 7.79.0) to ignore content length if any transfer encoding is used. A side effect of that was that content length was not set by libcurl until after the header callback was called the final time, because until all headers are processed it cannot be determined if content length is valid. This change keeps the same intention --all headers must be processed-- but now the content length is available before the final call to the header function that indicates all headers have been processed (ie a blank header). Bug: https://github.com/curl/curl/commit/8a16e54#r57374914 Reported-by: sergio-nsk@users.noreply.github.com Co-authored-by: Daniel Stenberg Fixes https://github.com/curl/curl/issues/7804 Closes https://github.com/curl/curl/pull/7803
show more ...
|
#
d36fded5 |
| 14-Oct-2021 |
Daniel Stenberg |
http: remove assert that breaks hyper Reported-by: Jay Satiro Fixes #7852 Closes #7855
|
#
87907d56 |
| 06-Oct-2021 |
Daniel Stenberg |
http: fix Basic auth with empty name field in URL Add test 367 to verify. Reported-by: Rick Lane Fixes #7819 Closes #7820
|
#
beb8990d |
| 17-Sep-2021 |
Daniel Stenberg |
http: fix the broken >3 digit response code detection When the "reason phrase" in the HTTP status line starts with a digit, that was treated as the forth response code digit and curl wou
http: fix the broken >3 digit response code detection When the "reason phrase" in the HTTP status line starts with a digit, that was treated as the forth response code digit and curl would claim the response to be non-compliant. Added test 1466 to verify this case. Regression brought by 5dc594e44f73b17 Reported-by: Glenn de boer Fixes #7738 Closes #7739
show more ...
|
#
8a16e54c |
| 30-Aug-2021 |
Daniel Stenberg |
http: ignore content-length if any transfer-encoding is used Fixes #7643 Closes #7649
|
#
5dc594e4 |
| 26-Aug-2021 |
Daniel Stenberg |
http: disallow >3-digit response codes Make the built-in HTTP parser behave similar to hyper and reject any HTTP response using more than 3 digits for the response code. Updated
http: disallow >3-digit response codes Make the built-in HTTP parser behave similar to hyper and reject any HTTP response using more than 3 digits for the response code. Updated test 1432 accordingly. Enabled test 1432 in the hyper builds. Closes #7641
show more ...
|