diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-09-28 23:46:14 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-09-28 23:49:32 +0200 |
commit | 5df13c31735fa089d5344fde13b66ace1ea473d1 (patch) | |
tree | 783d6f38bfc41e3fdbc445e9c0ffe5f3cf90f0b6 /tests/data/test1015 | |
parent | ed4eecc05e0cce36d8ce4ac9466376ca5fcfcba2 (diff) | |
download | curl-5df13c31735fa089d5344fde13b66ace1ea473d1.tar.gz |
curl_easy_escape: don't escape "unreserved" characters
According to RFC3986 section 2.3 the letters -, ., _ and ~ should not be
percent-encoded.
Reported by: Miguel Diaz
Bug: http://curl.haxx.se/mail/lib-2010-09/0227.html
Diffstat (limited to 'tests/data/test1015')
-rw-r--r-- | tests/data/test1015 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/data/test1015 b/tests/data/test1015 index cb916fd17..c16746646 100644 --- a/tests/data/test1015 +++ b/tests/data/test1015 @@ -44,10 +44,10 @@ 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-Length: 133
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 +my%20name%20is%20moo%5B%5D&y e s=s_i_r&v_alue=content%20to%20_%3F%21%23%24%27%7C%3C%3E%0A&content%20to%20_%3F%21%23%24%27%7C%3C%3E%0A </protocol> </verify> </testcase> |