113498266Sopenharmony_ci<testcase> 213498266Sopenharmony_ci<info> 313498266Sopenharmony_ci<keywords> 413498266Sopenharmony_ciHTTP 513498266Sopenharmony_ciHTTP PUT 613498266Sopenharmony_ciExpect: 100-continue 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.1 400 NOOOOOOOOO 1513498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 1613498266Sopenharmony_ciServer: test-server/fake 1713498266Sopenharmony_ciContent-Length: 9 1813498266Sopenharmony_ciContent-Type: text/html 1913498266Sopenharmony_ci 2013498266Sopenharmony_ciFAILURE1 2113498266Sopenharmony_ci</data> 2213498266Sopenharmony_ci 2313498266Sopenharmony_ci<data1> 2413498266Sopenharmony_ciHTTP/1.1 400 NEITHER 2513498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 2613498266Sopenharmony_ciServer: test-server/fake 2713498266Sopenharmony_ciContent-Length: 9 2813498266Sopenharmony_ciContent-Type: text/html 2913498266Sopenharmony_ci 3013498266Sopenharmony_ciFAILURE2 3113498266Sopenharmony_ci</data1> 3213498266Sopenharmony_ci 3313498266Sopenharmony_ci# We use skip to make the test server never read the full payload off 3413498266Sopenharmony_ci# the socket and instead return the response at once. In actuality, the 3513498266Sopenharmony_ci# long --expect100-timeout means that it will never get a chance to read this. 3613498266Sopenharmony_ci<servercmd> 3713498266Sopenharmony_ciskip: 100 3813498266Sopenharmony_ci</servercmd> 3913498266Sopenharmony_ci</reply> 4013498266Sopenharmony_ci 4113498266Sopenharmony_ci# 4213498266Sopenharmony_ci# Client-side 4313498266Sopenharmony_ci<client> 4413498266Sopenharmony_ci# 100 x 'x' 4513498266Sopenharmony_ci<file name="%LOGDIR/file%TESTNUMBER"> 4613498266Sopenharmony_ciXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 4713498266Sopenharmony_ci</file> 4813498266Sopenharmony_ci<server> 4913498266Sopenharmony_cihttp 5013498266Sopenharmony_ci</server> 5113498266Sopenharmony_ci<name> 5213498266Sopenharmony_ciHTTP PUT expect 100-continue with a 400 5313498266Sopenharmony_ci</name> 5413498266Sopenharmony_ci <command option="no-output"> 5513498266Sopenharmony_ci-H "Expect: 100-continue" -T %LOGDIR/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 --expect100-timeout 99 5613498266Sopenharmony_ci</command> 5713498266Sopenharmony_ci</client> 5813498266Sopenharmony_ci 5913498266Sopenharmony_ci# 6013498266Sopenharmony_ci# Verify data after the test has been "shot" 6113498266Sopenharmony_ci<verify> 6213498266Sopenharmony_ci<stdout> 6313498266Sopenharmony_ciHTTP/1.1 400 NOOOOOOOOO 6413498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 6513498266Sopenharmony_ciServer: test-server/fake 6613498266Sopenharmony_ciContent-Length: 9 6713498266Sopenharmony_ciContent-Type: text/html 6813498266Sopenharmony_ci 6913498266Sopenharmony_ciFAILURE1 7013498266Sopenharmony_ciHTTP/1.1 400 NEITHER 7113498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 7213498266Sopenharmony_ciServer: test-server/fake 7313498266Sopenharmony_ciContent-Length: 9 7413498266Sopenharmony_ciContent-Type: text/html 7513498266Sopenharmony_ci 7613498266Sopenharmony_ciFAILURE2 7713498266Sopenharmony_ci</stdout> 7813498266Sopenharmony_ci<protocol> 7913498266Sopenharmony_ciPUT /%TESTNUMBER HTTP/1.1 8013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 8113498266Sopenharmony_ciUser-Agent: curl/%VERSION 8213498266Sopenharmony_ciAccept: */* 8313498266Sopenharmony_ciExpect: 100-continue 8413498266Sopenharmony_ciContent-Length: 100 8513498266Sopenharmony_ci 8613498266Sopenharmony_ciPUT /%TESTNUMBER0001 HTTP/1.1 8713498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 8813498266Sopenharmony_ciUser-Agent: curl/%VERSION 8913498266Sopenharmony_ciAccept: */* 9013498266Sopenharmony_ciExpect: 100-continue 9113498266Sopenharmony_ciContent-Length: 100 9213498266Sopenharmony_ci 9313498266Sopenharmony_ci</protocol> 9413498266Sopenharmony_ci</verify> 9513498266Sopenharmony_ci</testcase> 96