xref: /curl/tests/data/test1947 (revision 9c9e8393)
1<testcase>
2<info>
3<keywords>
4curl_easy_nextheader
5</keywords>
6</info>
7
8# Server-side
9<reply>
10<data nocheck="yes">
11HTTP/1.1 302 OK
12Date: Thu, 01 Nov 2001 14:49:00 GMT
13Server:       test with trailing space
14Content-Type: text/html
15Content-Length: 0
16Set-Cookie: onecookie=data;
17Set-Cookie: secondcookie=2data;
18Set-Cookie: cookie3=data3;
19Location: /%TESTNUMBER0002
20
21</data>
22<data2 nocheck="yes">
23HTTP/1.1 200 OK
24Date: Thu, 09 Nov 2010 14:49:00 GMT
25Server: the other one
26Content-Type: text/html
27Content-Length: 0
28Set-Cookie: 1cookie=data1;
29Set-Cookie: 2cookie=data2;
30
31</data2>
32
33<data3 nocheck="yes">
34HTTP/1.1 200 OK
35Date: Thu, 09 Nov 2010 14:49:00 GMT
36Server: the other one
37Content-Type: text/html
38Content-Length: 0
39
40</data3>
41</reply>
42
43# Client-side
44<client>
45<features>
46headers-api
47</features>
48<server>
49http
50</server>
51
52<name>
53curl_easy_nextheader on second request after first did redirects
54</name>
55<tool>
56lib%TESTNUMBER
57</tool>
58
59<command>
60http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0003
61</command>
62</client>
63
64# Verify data after the test has been "shot"
65<verify>
66<stdout>
67count = 2
68count = 1
69</stdout>
70</verify>
71</testcase>
72