1<testcase> 2<info> 3<keywords> 4HTTP 5--location-trusted 6</keywords> 7</info> 8 9# 10# Server-side 11<reply> 12<data nocheck="yes"> 13HTTP/1.1 200 OK 14Date: Tue, 09 Nov 2010 14:49:00 GMT 15Content-Length: 6 16Content-Type: text/html 17Funny-head: yesyes 18 19-foo- 20</data> 21 22<datacheck> 23HTTP/1.1 301 redirect 24Date: Tue, 09 Nov 2010 14:49:00 GMT 25Server: test-server/fake 26Content-Length: 0 27Connection: close 28Content-Type: text/html 29Location: http://somewhere.else.example/a/path/%TESTNUMBER0002 30 31HTTP/1.1 200 OK 32Date: Tue, 09 Nov 2010 14:49:00 GMT 33Content-Length: 6 34Content-Type: text/html 35Funny-head: yesyes 36 37-foo- 38</datacheck> 39 40</reply> 41 42# 43# Client-side 44<client> 45<features> 46proxy 47</features> 48<server> 49http 50</server> 51<name> 52HTTP 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> 63QUIT 64</strip> 65<protocol> 66GET http://somwhere.example/%TESTNUMBER HTTP/1.1 67Host: somwhere.example 68Authorization: Basic YWxiZXJ0bzplaW5zdGVpbg== 69User-Agent: curl/%VERSION 70Accept: */* 71Proxy-Connection: Keep-Alive 72 73GET http://somewhere.else.example/%TESTNUMBER HTTP/1.1 74Host: somewhere.else.example 75User-Agent: curl/%VERSION 76Accept: */* 77Proxy-Connection: Keep-Alive 78 79</protocol> 80</verify> 81</testcase> 82