xref: /third_party/curl/tests/data/test1129 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP POST
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 404 NOOOOOOOOO
1513498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
1613498266Sopenharmony_ciServer: test-server/fake
1713498266Sopenharmony_ciContent-Length: 6
1813498266Sopenharmony_ciContent-Type: text/html
1913498266Sopenharmony_ci
2013498266Sopenharmony_ci-foo-
2113498266Sopenharmony_ci</data>
2213498266Sopenharmony_ci
2313498266Sopenharmony_ci<data1>
2413498266Sopenharmony_ciHTTP/1.1 404 NEITHER
2513498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
2613498266Sopenharmony_ciServer: test-server/fake
2713498266Sopenharmony_ciContent-Length: 6
2813498266Sopenharmony_ciContent-Type: text/html
2913498266Sopenharmony_ci
3013498266Sopenharmony_ci-foo-
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
3513498266Sopenharmony_ci<servercmd>
3613498266Sopenharmony_ciskip: 1053700
3713498266Sopenharmony_ci</servercmd>
3813498266Sopenharmony_ci</reply>
3913498266Sopenharmony_ci
4013498266Sopenharmony_ci#
4113498266Sopenharmony_ci# Client-side
4213498266Sopenharmony_ci<client>
4313498266Sopenharmony_ci# 1053700 x 'x'
4413498266Sopenharmony_ci<file name="%LOGDIR/file%TESTNUMBER">
4513498266Sopenharmony_ci%repeat[1053700 x x]%
4613498266Sopenharmony_ci</file>
4713498266Sopenharmony_ci<server>
4813498266Sopenharmony_cihttp
4913498266Sopenharmony_ci</server>
5013498266Sopenharmony_ci<name>
5113498266Sopenharmony_ciHTTP POST expect 100-continue with a 404
5213498266Sopenharmony_ci</name>
5313498266Sopenharmony_ci <command option="no-output">
5413498266Sopenharmony_ci-d @%LOGDIR/file%TESTNUMBER --expect100-timeout 99 http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001
5513498266Sopenharmony_ci</command>
5613498266Sopenharmony_ci</client>
5713498266Sopenharmony_ci
5813498266Sopenharmony_ci#
5913498266Sopenharmony_ci# Verify data after the test has been "shot"
6013498266Sopenharmony_ci<verify>
6113498266Sopenharmony_ci<stdout>
6213498266Sopenharmony_ciHTTP/1.1 404 NOOOOOOOOO
6313498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
6413498266Sopenharmony_ciServer: test-server/fake
6513498266Sopenharmony_ciContent-Length: 6
6613498266Sopenharmony_ciContent-Type: text/html
6713498266Sopenharmony_ci
6813498266Sopenharmony_ci-foo-
6913498266Sopenharmony_ciHTTP/1.1 404 NEITHER
7013498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
7113498266Sopenharmony_ciServer: test-server/fake
7213498266Sopenharmony_ciContent-Length: 6
7313498266Sopenharmony_ciContent-Type: text/html
7413498266Sopenharmony_ci
7513498266Sopenharmony_ci-foo-
7613498266Sopenharmony_ci</stdout>
7713498266Sopenharmony_ci<protocol>
7813498266Sopenharmony_ciPOST /%TESTNUMBER HTTP/1.1
7913498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
8013498266Sopenharmony_ciUser-Agent: curl/%VERSION
8113498266Sopenharmony_ciAccept: */*
8213498266Sopenharmony_ciContent-Length: 1053700
8313498266Sopenharmony_ciContent-Type: application/x-www-form-urlencoded
8413498266Sopenharmony_ciExpect: 100-continue
8513498266Sopenharmony_ci
8613498266Sopenharmony_ciPOST /%TESTNUMBER0001 HTTP/1.1
8713498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
8813498266Sopenharmony_ciUser-Agent: curl/%VERSION
8913498266Sopenharmony_ciAccept: */*
9013498266Sopenharmony_ciContent-Length: 1053700
9113498266Sopenharmony_ciContent-Type: application/x-www-form-urlencoded
9213498266Sopenharmony_ciExpect: 100-continue
9313498266Sopenharmony_ci
9413498266Sopenharmony_ci</protocol>
9513498266Sopenharmony_ci</verify>
9613498266Sopenharmony_ci</testcase>
97