proxy: chunked response, error code

Add test1715 to check proper handling of chunked transfer
encoding in CONNECT responses. Change proxy error code from
56 (RECV_ERROR) for everything to 7 (COULDNT_CONNECT) when
the server response could be read successfully, but establishing
the connection is not possible (http status code wrong).

Adapt several test expectations from 56 to 7.

Closes #21084
This commit is contained in:
Stefan Eissing 2026-03-24 10:03:18 +01:00 committed by Daniel Stenberg
parent 39036c9021
commit a186ecf4bf
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
15 changed files with 84 additions and 29 deletions

View file

@ -53,10 +53,10 @@ Proxy-Connection: Keep-Alive
</protocol>
<errorcode>
56
7
</errorcode>
<stderr mode="text">
curl: (56) CONNECT tunnel failed, response 400
curl: (7) CONNECT tunnel failed, response 400
</stderr>
</verify>
</testcase>