From 05221e9056518beb648362d06a4e575bd0254f86 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 26 Nov 2007 11:04:21 +0000 Subject: test1015 --data-urlencode --- tests/data/test1015 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tests/data/test1015 (limited to 'tests/data/test1015') diff --git a/tests/data/test1015 b/tests/data/test1015 new file mode 100644 index 000000000..cb916fd17 --- /dev/null +++ b/tests/data/test1015 @@ -0,0 +1,53 @@ + + + +--data-urlencode + + + +# +# Server-side + + +HTTP/1.1 200 I am cool swsclose +Server: Cool server/10.0 +Content-Length: 0 + + + + +# +# Client-side + + +http + + +--data-urlencode + + +http://%HOSTIP:%HTTPPORT/1015 --data-urlencode "my name is moo[]" --data-urlencode "y e s=s_i_r" --data-urlencode "v_alue@log/1015.txt" --data-urlencode @log/1015.txt + + +content to _?!#$'|<> + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +POST /1015 HTTP/1.1 +User-Agent: curl/7.17.2-CVS (i686-pc-linux-gnu) libcurl/7.17.2-CVS OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.5.2-CVS libidn/1.1 libssh2/0.19.0-C +Host: %HOSTIP:%HTTPPORT +Accept: */* +Content-Length: 141 +Content-Type: application/x-www-form-urlencoded + +my%20name%20is%20moo%5B%5D&y e s=s%5Fi%5Fr&v_alue=content%20to%20%5F%3F%21%23%24%27%7C%3C%3E%0A&content%20to%20%5F%3F%21%23%24%27%7C%3C%3E%0A + + + -- cgit v1.2.3