test1910 (986B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP Basic 6 CURLOPT_FOLLOWLOCATION 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data nocheck="yes"> 13 HTTP/1.1 302 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Content-Type: text/html 17 Content-Length: 0 18 Location: /%TESTNUMBER0002 19 20 </data> 21 <data2> 22 HTTP/1.1 200 OK 23 Date: Tue, 09 Nov 2010 14:49:00 GMT 24 Server: test-server/fake 25 Content-Type: text/html 26 Content-Length: 4 27 28 hej 29 </data2> 30 </reply> 31 32 # Client-side 33 <client> 34 <server> 35 http 36 </server> 37 38 <name> 39 HTTP credentials with newline and redirect 40 </name> 41 <tool> 42 lib%TESTNUMBER 43 </tool> 44 45 <command> 46 %HOSTIP:%HTTPPORT/%TESTNUMBER 47 </command> 48 </client> 49 50 # Verify data after the test has been "shot" 51 <verify> 52 <protocol> 53 GET /%TESTNUMBER HTTP/1.1 54 Host: %HOSTIP:%HTTPPORT 55 Authorization: Basic %b64[user%0aname:pass%0aword]b64% 56 Accept: */* 57 58 GET /%TESTNUMBER0002 HTTP/1.1 59 Host: %HOSTIP:%HTTPPORT 60 Authorization: Basic %b64[user%0aname:pass%0aword]b64% 61 Accept: */* 62 63 </protocol> 64 </verify> 65 </testcase>