xref: /third_party/curl/tests/data/test56 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP POST
613498266Sopenharmony_cichunked Transfer-Encoding
713498266Sopenharmony_ciconfig file
813498266Sopenharmony_ci-A
913498266Sopenharmony_ci</keywords>
1013498266Sopenharmony_ci</info>
1113498266Sopenharmony_ci# Server-side
1213498266Sopenharmony_ci<reply>
1313498266Sopenharmony_ci<data>
1413498266Sopenharmony_ciHTTP/1.0 200 OK swsclose
1513498266Sopenharmony_ciFunny-head: yesyes
1613498266Sopenharmony_ci
1713498266Sopenharmony_ciThis is the proof it works
1813498266Sopenharmony_ci</data>
1913498266Sopenharmony_ci</reply>
2013498266Sopenharmony_ci
2113498266Sopenharmony_ci# Client-side
2213498266Sopenharmony_ci<client>
2313498266Sopenharmony_ci<server>
2413498266Sopenharmony_cihttp
2513498266Sopenharmony_ci</server>
2613498266Sopenharmony_ci<name>
2713498266Sopenharmony_ciHTTP POST with *HUGE* request and chunked transfer-encoding
2813498266Sopenharmony_ci</name>
2913498266Sopenharmony_ci <stdin>
3013498266Sopenharmony_ci#
3113498266Sopenharmony_cidata "we post this"
3213498266Sopenharmony_ci#
3313498266Sopenharmony_ci# enforce chunky post!
3413498266Sopenharmony_ciheader "Transfer-Encoding: chunked"
3513498266Sopenharmony_ci#
3613498266Sopenharmony_ci# Set the user-agent using a short-option:
3713498266Sopenharmony_ci-A "%repeat[99999 x a]%"
3813498266Sopenharmony_ci#
3913498266Sopenharmony_ci </stdin>
4013498266Sopenharmony_ci<command>
4113498266Sopenharmony_ci-K - %HOSTIP:%HTTPPORT/that.site.com/%TESTNUMBER
4213498266Sopenharmony_ci</command>
4313498266Sopenharmony_ci</client>
4413498266Sopenharmony_ci
4513498266Sopenharmony_ci# Verify data after the test has been "shot"
4613498266Sopenharmony_ci<verify>
4713498266Sopenharmony_ci<protocol>
4813498266Sopenharmony_ciPOST /that.site.com/%TESTNUMBER HTTP/1.1
4913498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
5013498266Sopenharmony_ciUser-Agent: %repeat[99999 x a]%
5113498266Sopenharmony_ciAccept: */*
5213498266Sopenharmony_ciTransfer-Encoding: chunked
5313498266Sopenharmony_ciContent-Type: application/x-www-form-urlencoded
5413498266Sopenharmony_ci
5513498266Sopenharmony_ci%if hyper
5613498266Sopenharmony_ciC
5713498266Sopenharmony_ci%else
5813498266Sopenharmony_cic
5913498266Sopenharmony_ci%endif
6013498266Sopenharmony_ciwe post this
6113498266Sopenharmony_ci0
6213498266Sopenharmony_ci
6313498266Sopenharmony_ci</protocol>
6413498266Sopenharmony_ci</verify>
6513498266Sopenharmony_ci</testcase>
66