test979 (1026B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP Basic auth 7 </keywords> 8 </info> 9 10 # 11 # Server-side 12 <reply> 13 <data crlf="yes" nocheck="yes"> 14 HTTP/1.1 302 go go go 15 Content-Length: 8 16 Location: http://%HOSTIP:%HTTPPORT/user/%TESTNUMBER0002 17 Content-Type: text/html 18 Funny-head: yesyes 19 20 notreal 21 </data> 22 <data2 crlf="yes"> 23 HTTP/1.1 200 OK 24 Content-Length: 6 25 Content-Type: text/html 26 Funny-head: yesyes 27 28 final 29 </data2> 30 </reply> 31 32 # 33 # Client-side 34 <client> 35 <server> 36 http 37 </server> 38 <name> 39 -u with redirect to absolute URL using same origin and auth 40 </name> 41 <command> 42 http://first:secret@%HOSTIP:%HTTPPORT/%TESTNUMBER -L -u smith:doggie 43 </command> 44 </client> 45 46 # 47 # Verify data after the test has been "shot" 48 <verify> 49 <protocol crlf="yes"> 50 GET /%TESTNUMBER HTTP/1.1 51 Host: %HOSTIP:%HTTPPORT 52 Authorization: Basic %b64[smith:doggie]b64% 53 User-Agent: curl/%VERSION 54 Accept: */* 55 56 GET /user/%TESTNUMBER0002 HTTP/1.1 57 Host: %HOSTIP:%HTTPPORT 58 Authorization: Basic %b64[smith:doggie]b64% 59 User-Agent: curl/%VERSION 60 Accept: */* 61 62 </protocol> 63 </verify> 64 </testcase>