test174 (888B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP POST 6 </keywords> 7 </info> 8 9 # Server-side 10 <reply> 11 <data> 12 HTTP/1.1 200 beng swsclose 13 Server: Microsoft-IIS/6.0 14 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth 15 Content-Type: text/html; charset=iso-8859-1 16 Content-Length: 26 17 18 This is not the real page 19 </data> 20 </reply> 21 22 # Client-side 23 <client> 24 # 25 <server> 26 http 27 </server> 28 <name> 29 HTTP POST --anyauth to server not requiring any auth at all 30 </name> 31 <command> 32 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth -d "junkelijunk" 33 </command> 34 </client> 35 36 # Verify data after the test has been "shot" 37 <verify> 38 <protocol nonewline="yes"> 39 POST /%TESTNUMBER HTTP/1.1 40 Host: %HOSTIP:%HTTPPORT 41 User-Agent: curl/%VERSION 42 Accept: */* 43 Content-Length: 11 44 Content-Type: application/x-www-form-urlencoded 45 46 junkelijunk 47 </protocol> 48 </verify> 49 </testcase>