curl-curl/tests/data/test1941
Daniel Stenberg 7e064d0756
cf-h1-proxy: support folded headers in CONNECT responses
Update test 1941 to verify this

Remove unused code from dynhds for handling folded headers, and the
associated unit tests of those functions in test 2602 and 2603.

Closes #20080
2025-12-23 17:12:14 +01:00

81 lines
1.3 KiB
XML

<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
curl_easy_header
CONNECT
</keywords>
</info>
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test with trailing space%repeat[5 x ]%
Content-Type:
%SPtext/html
Content-Length: 0
Set-Cookie: onecookie=data;
Set-Cookie: secondcookie=2data;
Set-Cookie: cookie3=data3;
Location: /%TESTNUMBER0002
</data>
<connect crlf="headers">
HTTP/1.1 200 Sure go ahead
Server: from%SP
%SPthe%TAB
%TAB%TABconnect
Silly-thing: yes yes
</connect>
</reply>
# Client-side
<client>
<features>
proxy
SSL
headers-api
</features>
<server>
http
http-proxy
</server>
<name>
curl_easy_header with CONNECT
</name>
<tool>
lib1940
</tool>
<command>
http://hello:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<proxy crlf="headers">
CONNECT hello:%HTTPPORT HTTP/1.1
Host: hello:%HTTPPORT
Proxy-Connection: Keep-Alive
</proxy>
<stdout>
Date == Thu, 09 Nov 2010 14:49:00 GMT
Server == test with trailing space
Content-Type == text/html
Content-Length == 0
Location == /%TESTNUMBER0002
- Set-Cookie == onecookie=data; (0/3)
- Set-Cookie == secondcookie=2data; (1/3)
- Set-Cookie == cookie3=data3; (2/3)
Server == from the connect
Silly-thing == yes yes
</stdout>
</verify>
</testcase>