test177 (824B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP POST 6 HTTP Digest auth 7 followlocation 8 </keywords> 9 </info> 10 11 # Server-side 12 <reply> 13 <data> 14 HTTP/1.1 302 *MOVED* swsclose swsbounce 15 Server: Microsoft-IIS/6.0 16 Location: /mooooo/%TESTNUMBER 17 Content-Type: text/html; charset=iso-8859-1 18 19 </data> 20 </reply> 21 22 # Client-side 23 <client> 24 # 25 <server> 26 http 27 </server> 28 <features> 29 crypto 30 digest 31 </features> 32 <name> 33 HTTP POST --digest to server doing a 302-location response 34 </name> 35 <command> 36 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -d "junkelijunk" 37 </command> 38 </client> 39 40 # Verify data after the test has been "shot" 41 <verify> 42 <protocol> 43 POST /%TESTNUMBER HTTP/1.1 44 Host: %HOSTIP:%HTTPPORT 45 User-Agent: curl/%VERSION 46 Accept: */* 47 Content-Length: 0 48 Content-Type: application/x-www-form-urlencoded 49 50 </protocol> 51 </verify> 52 </testcase>