1<testcase> 2<info> 3<keywords> 4curl_easy_header 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</reply> 33 34# Client-side 35<client> 36<features> 37headers-api 38</features> 39<server> 40http 41</server> 42 43<name> 44curl_easy_header with redirect 45</name> 46<tool> 47lib1940 48</tool> 49 50<command> 51http://%HOSTIP:%HTTPPORT/%TESTNUMBER 52</command> 53</client> 54 55# Verify data after the test has been "shot" 56<verify> 57<stdout> 58 Date == Thu, 09 Nov 2010 14:49:00 GMT 59 Server == the other one 60 Content-Type == text/html 61 Content-Length == 0 62- Set-Cookie == 1cookie=data1; (0/2) 63- Set-Cookie == 2cookie=data2; (1/2) 64</stdout> 65</verify> 66</testcase> 67