test1909 (911B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 retry 7 </keywords> 8 </info> 9 10 # 11 # Server-side 12 <reply> 13 <data nocheck="yes"> 14 HTTP/1.1 200 OK swsclose swsbounce 15 Content-Length: 5 16 Connection: close 17 18 bbb 19 </data> 20 <data1> 21 HTTP/1.1 200 OK 22 Content-Length: 5 23 Connection: close 24 25 data 26 </data1> 27 </reply> 28 29 # 30 # Client-side 31 <client> 32 <server> 33 http 34 </server> 35 <name> 36 HTTP GET --retry-all-errors to overcome partial transfer 37 </name> 38 <command option="no-output,no-include"> 39 --retry 1 --retry-all-errors -o %LOGDIR/outfile%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER 40 </command> 41 </client> 42 43 # 44 # Verify data after the test has been "shot" 45 <verify> 46 <protocol> 47 GET /%TESTNUMBER HTTP/1.1 48 Host: %HOSTIP:%HTTPPORT 49 User-Agent: curl/%VERSION 50 Accept: */* 51 52 GET /%TESTNUMBER HTTP/1.1 53 Host: %HOSTIP:%HTTPPORT 54 User-Agent: curl/%VERSION 55 Accept: */* 56 57 </protocol> 58 59 <file1 name="%LOGDIR/outfile%TESTNUMBER"> 60 data 61 </file1> 62 63 </verify> 64 </testcase>