xref: /third_party/curl/tests/data/test1221 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP POST
613498266Sopenharmony_ci--data-urlencode
713498266Sopenharmony_ci--url-query
813498266Sopenharmony_ci</keywords>
913498266Sopenharmony_ci</info>
1013498266Sopenharmony_ci
1113498266Sopenharmony_ci#
1213498266Sopenharmony_ci# Server-side
1313498266Sopenharmony_ci<reply>
1413498266Sopenharmony_ci<data>
1513498266Sopenharmony_ciHTTP/1.1 200 I am cool swsclose
1613498266Sopenharmony_ciServer: Cool server/10.0
1713498266Sopenharmony_ciContent-Length: 0
1813498266Sopenharmony_ci
1913498266Sopenharmony_ci</data>
2013498266Sopenharmony_ci</reply>
2113498266Sopenharmony_ci
2213498266Sopenharmony_ci#
2313498266Sopenharmony_ci# Client-side
2413498266Sopenharmony_ci<client>
2513498266Sopenharmony_ci<server>
2613498266Sopenharmony_cihttp
2713498266Sopenharmony_ci</server>
2813498266Sopenharmony_ci<name>
2913498266Sopenharmony_ci--url-query with --data-urlencode
3013498266Sopenharmony_ci</name>
3113498266Sopenharmony_ci<command>
3213498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/%TESTNUMBER --url-query "my name is moo[]" --url-query "yes=s i r" --url-query "v_alue@%LOGDIR/%TESTNUMBER.txt" --url-query @%LOGDIR/%TESTNUMBER.txt --url-query "+%3d%3d" --data-urlencode "start=once upon the time"
3313498266Sopenharmony_ci</command>
3413498266Sopenharmony_ci<file name="%LOGDIR/%TESTNUMBER.txt">
3513498266Sopenharmony_cicontent to _?!#$'|<>
3613498266Sopenharmony_ci</file>
3713498266Sopenharmony_ci</client>
3813498266Sopenharmony_ci
3913498266Sopenharmony_ci#
4013498266Sopenharmony_ci# Verify data after the test has been "shot"
4113498266Sopenharmony_ci<verify>
4213498266Sopenharmony_ci<protocol nonewline="yes">
4313498266Sopenharmony_ciPOST /%TESTNUMBER?my+name+is+moo%5b%5d&yes=s+i+r&v_alue=content+to+_%3f%21%23%24%27%7c%3c%3e%0a&content+to+_%3f%21%23%24%27%7c%3c%3e%0a&%3d%3d HTTP/1.1
4413498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
4513498266Sopenharmony_ciUser-Agent: curl/%VERSION
4613498266Sopenharmony_ciAccept: */*
4713498266Sopenharmony_ciContent-Length: 24
4813498266Sopenharmony_ciContent-Type: application/x-www-form-urlencoded
4913498266Sopenharmony_ci
5013498266Sopenharmony_cistart=once+upon+the+time
5113498266Sopenharmony_ci</protocol>
5213498266Sopenharmony_ci</verify>
5313498266Sopenharmony_ci</testcase>
54