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