test999 (1358B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 --location-trusted 6 </keywords> 7 </info> 8 9 # 10 # Server-side 11 <reply> 12 <data nocheck="yes"> 13 HTTP/1.1 200 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Content-Length: 6 16 Content-Type: text/html 17 Funny-head: yesyes 18 19 -foo- 20 </data> 21 22 <datacheck> 23 HTTP/1.1 301 redirect 24 Date: Tue, 09 Nov 2010 14:49:00 GMT 25 Server: test-server/fake 26 Content-Length: 0 27 Connection: close 28 Content-Type: text/html 29 Location: http://somewhere.else.example/a/path/%TESTNUMBER0002 30 31 HTTP/1.1 200 OK 32 Date: Tue, 09 Nov 2010 14:49:00 GMT 33 Content-Length: 6 34 Content-Type: text/html 35 Funny-head: yesyes 36 37 -foo- 38 </datacheck> 39 40 </reply> 41 42 # 43 # Client-side 44 <client> 45 <features> 46 proxy 47 </features> 48 <server> 49 http 50 </server> 51 <name> 52 HTTP with auth in first URL but not second 53 </name> 54 <command> 55 -x %HOSTIP:%HTTPPORT http://alberto:einstein@somwhere.example/%TESTNUMBER http://somewhere.else.example/%TESTNUMBER 56 </command> 57 </client> 58 59 # 60 # Verify data after the test has been "shot" 61 <verify> 62 <strip> 63 QUIT 64 </strip> 65 <protocol> 66 GET http://somwhere.example/%TESTNUMBER HTTP/1.1 67 Host: somwhere.example 68 Authorization: Basic %b64[alberto:einstein]b64% 69 User-Agent: curl/%VERSION 70 Accept: */* 71 Proxy-Connection: Keep-Alive 72 73 GET http://somewhere.else.example/%TESTNUMBER HTTP/1.1 74 Host: somewhere.else.example 75 User-Agent: curl/%VERSION 76 Accept: */* 77 Proxy-Connection: Keep-Alive 78 79 </protocol> 80 </verify> 81 </testcase>