113498266Sopenharmony_ci<testcase> 213498266Sopenharmony_ci<info> 313498266Sopenharmony_ci<keywords> 413498266Sopenharmony_ciHTTP 513498266Sopenharmony_ciHTTP GET 613498266Sopenharmony_ci--no-clobber 713498266Sopenharmony_ci</keywords> 813498266Sopenharmony_ci</info> 913498266Sopenharmony_ci 1013498266Sopenharmony_ci# 1113498266Sopenharmony_ci# Server-side 1213498266Sopenharmony_ci<reply> 1313498266Sopenharmony_ci<data nocheck="yes"> 1413498266Sopenharmony_ciHTTP/1.0 200 OK 1513498266Sopenharmony_ciConnection: close 1613498266Sopenharmony_ciContent-Type: text/plain 1713498266Sopenharmony_ciContent-Length: 4 1813498266Sopenharmony_ci 1913498266Sopenharmony_cifoo 2013498266Sopenharmony_ci</data> 2113498266Sopenharmony_ci</reply> 2213498266Sopenharmony_ci 2313498266Sopenharmony_ci# 2413498266Sopenharmony_ci# Client-side 2513498266Sopenharmony_ci<client> 2613498266Sopenharmony_ci<name> 2713498266Sopenharmony_ciHTTP GET without clobber when 100 files already exist 2813498266Sopenharmony_ci</name> 2913498266Sopenharmony_ci<server> 3013498266Sopenharmony_cihttp 3113498266Sopenharmony_ci</server> 3213498266Sopenharmony_ci<features> 3313498266Sopenharmony_cihttp 3413498266Sopenharmony_ci</features> 3513498266Sopenharmony_ci<command option="no-output"> 3613498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/exist%TESTNUMBER --no-clobber 3713498266Sopenharmony_ci</command> 3813498266Sopenharmony_ci<file name="%LOGDIR/exist%TESTNUMBER"> 3913498266Sopenharmony_cito stay the same 4013498266Sopenharmony_ci</file> 4113498266Sopenharmony_ci<precheck> 4213498266Sopenharmony_ciperl -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, ">", $filename) or die $!; print FH "to stay the same" ; close(FH) }' 4313498266Sopenharmony_ci</precheck> 4413498266Sopenharmony_ci<postcheck> 4513498266Sopenharmony_ciperl -e 'for my $i ((1..100)) { my $filename = "%LOGDIR/exist%TESTNUMBER.$i"; open(FH, "<", $filename) or die $!; (<FH> eq "to stay the same" and <FH> eq "") or die "incorrect $filename" ; close(FH) }' 4613498266Sopenharmony_ci</postcheck> 4713498266Sopenharmony_ci</client> 4813498266Sopenharmony_ci 4913498266Sopenharmony_ci# 5013498266Sopenharmony_ci# Verify data after the test has been "shot" 5113498266Sopenharmony_ci<verify> 5213498266Sopenharmony_ci<errorcode> 5313498266Sopenharmony_ci23 5413498266Sopenharmony_ci</errorcode> 5513498266Sopenharmony_ci<file name="%LOGDIR/exist%TESTNUMBER"> 5613498266Sopenharmony_cito stay the same 5713498266Sopenharmony_ci</file> 5813498266Sopenharmony_ci</verify> 5913498266Sopenharmony_ci</testcase> 60