xref: /curl/tests/data/test2306 (revision 2bee7aeb)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8#
9# This reproduces the #11101 issue, when the second response comes back
10# with the first header being "folded"
11<reply>
12<data nocheck="yes">
13HTTP/1.1 200 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
17ETag: "21025-dc7-39462498"
18Accept-Ranges: bytes
19Content-Length: 6
20Content-Type: text/html
21Funny-head: yesyes
22
23-foo-
24</data>
25<data2 nocheck="yes">
26HTTP/1.1 200 OK swsclose
27	Access-Control-Allow-Origin: *
28Connection: Keep-Alive
29Content-Type: text/html; charset=utf-8
30Date: Wed, 10 May 2023 14:58:08 GMT
31
32-foo-
33</data2>
34</reply>
35
36# Client-side
37<client>
38<server>
39http
40</server>
41# tool to run
42<tool>
43lib%TESTNUMBER
44</tool>
45
46<name>
47HTTP GET reused handle with first header folded
48</name>
49<command>
50http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002
51</command>
52</client>
53
54#
55# Verify data after the test has been "shot"
56<verify>
57# hyper doesn't like the bad header in the second request
58<errorcode>
59%if hyper
601
61%else
620
63%endif
64</errorcode>
65<protocol>
66GET /%TESTNUMBER HTTP/1.1
67Host: %HOSTIP:%HTTPPORT
68Accept: */*
69
70GET /%TESTNUMBER0002 HTTP/1.1
71Host: %HOSTIP:%HTTPPORT
72Accept: */*
73
74</protocol>
75</verify>
76</testcase>
77