test424 (1487B)
1 <testcase> 2 <info> 3 <keywords> 4 -w 5 --write-out 6 </keywords> 7 </info> 8 9 # 10 # Server-side 11 <reply> 12 <data crlf="yes" nocheck="yes"> 13 HTTP/1.1 301 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 17 ETag: "21025-dc7-39462498" 18 Accept-Ranges: bytes 19 Content-Length: 0 20 Connection: close 21 Content-Type: text/html 22 Funny-head: yesyes 23 Location: http://anotherhost.example:2023/%TESTNUMBER0002?moo.html 24 25 </data> 26 <data2 crlf="yes" nocheck="yes"> 27 HTTP/1.1 200 OK 28 Date: Tue, 09 Nov 2010 14:49:00 GMT 29 Server: test-server/fake 30 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 31 ETag: "21025-dc7-39462498" 32 Accept-Ranges: bytes 33 Content-Length: 0 34 Connection: close 35 Content-Type: text/html 36 Funny-head: yesyes 37 38 </data2> 39 </reply> 40 41 # 42 # Client-side 43 <client> 44 <features> 45 proxy 46 </features> 47 <server> 48 http 49 </server> 50 <name> 51 -w with urle.* variables 52 </name> 53 <command option="no-include"> 54 "http://uuuu:pppp@%HOSTIP:%HTTPPORT/%TESTNUMBER?qqqq#ffff" "h55p://hello2000:1/%TESTNUMBER?qqqq#ffff" "local host" "http://u22u:p22p@%HOSTIP:%HTTPPORT/%TESTNUMBER?qqqq#ffff" -w '%{urle.host}+%{urle.path}+%{urle.scheme}+%{urle.user}+%{urle.password}+%{urle.port}+%{urle.query}+%{urle.fragment}\n' -x http://%HOSTIP:%HTTPPORT/ -L 55 </command> 56 </client> 57 58 # 59 # Verify data after the test has been "shot" 60 <verify> 61 <stdout> 62 anotherhost.example+/4240002+http+++2023+moo.html+ 63 hello2000+/424+h55p+++1+qqqq+ffff 64 +++++++ 65 anotherhost.example+/4240002+http+++2023+moo.html+ 66 </stdout> 67 </verify> 68 </testcase>