test1945 (1322B)
1 <testcase> 2 <info> 3 <keywords> 4 curl_easy_header 5 CONNECT 6 </keywords> 7 </info> 8 9 # Server-side 10 <reply> 11 <data nocheck="yes"> 12 HTTP/1.1 200 OK 13 Date: Thu, 09 Nov 2010 14:49:00 GMT 14 Server: test with trailing space 15 Content-Type: text/html 16 Content-Length: 0 17 Set-Cookie: onecookie=data; 18 Set-Cookie: secondcookie=2data; 19 Set-Cookie: cookie3=data3; 20 Location: /%TESTNUMBER0002 21 22 </data> 23 <connect> 24 HTTP/1.1 200 Sure go ahead 25 Server: from the connect 26 Silly-thing: yes yes 27 28 </connect> 29 </reply> 30 31 # Client-side 32 <client> 33 <features> 34 proxy 35 SSL 36 headers-api 37 </features> 38 <server> 39 http 40 http-proxy 41 </server> 42 43 <name> 44 curl_easy_nextheader with server + CONNECT 45 </name> 46 <tool> 47 lib%TESTNUMBER 48 </tool> 49 50 <command> 51 http://hello:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT 52 </command> 53 </client> 54 55 # Verify data after the test has been "shot" 56 <verify> 57 <proxy> 58 CONNECT hello:%HTTPPORT HTTP/1.1 59 Host: hello:%HTTPPORT 60 Proxy-Connection: Keep-Alive 61 62 </proxy> 63 <stdout> 64 Server == from the connect (0/2) 65 Silly-thing == yes yes (0/1) 66 Date == Thu, 09 Nov 2010 14:49:00 GMT (0/1) 67 Server == test with trailing space (1/2) 68 Content-Type == text/html (0/1) 69 Content-Length == 0 (0/1) 70 Set-Cookie == onecookie=data; (0/3) 71 Set-Cookie == secondcookie=2data; (1/3) 72 Set-Cookie == cookie3=data3; (2/3) 73 Location == /19450002 (0/1) 74 </stdout> 75 </verify> 76 </testcase>