mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:31:40 +03:00
Folded header lines will now get passed through like before. The headers API is adapted and will provide the content unfolded. Added test 1274 and extended test 1940 to verify. Reported-by: Petr Pisar Fixes #8844 Closes #8899
62 lines
1 KiB
Text
62 lines
1 KiB
Text
<testcase>
|
|
<info>
|
|
<keywords>
|
|
curl_easy_header
|
|
</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
|
|
Content-Type: text/html
|
|
Fold: is
|
|
folding a
|
|
line
|
|
Content-Length: 0
|
|
Set-Cookie: onecookie=data;
|
|
Set-Cookie: secondcookie=2data;
|
|
Set-Cookie: cookie3=data3;
|
|
Location: /%TESTNUMBER0002
|
|
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
headers-api
|
|
</features>
|
|
<server>
|
|
http
|
|
</server>
|
|
|
|
<name>
|
|
curl_easy_header
|
|
</name>
|
|
<tool>
|
|
lib%TESTNUMBER
|
|
</tool>
|
|
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<stdout mode="text">
|
|
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)
|
|
Fold == is folding a line
|
|
</stdout>
|
|
</verify>
|
|
</testcase>
|