Hello,

On Sun, 21 Feb 2010 23:26:18 +0100 (CET)
Daniel Stenberg <dan...@haxx.se> wrote:

> See --data-urlencode

> curl supports urlencoding just fine.

Daniel, have you read my message? Have you tried the code above?

First, I'm speaking of cURL as library, not a separate program.

But okay, let's test --data-urlencode:

$ curl http://some-host/ --data-urlencode "rr=curl test"

tcpdump shows: 

====
POST / HTTP/1.1
User-Agent: curl/7.19.5 (i486-pc-linux-gnu) libcurl/7.19.7
 OpenSSL/0.9.8m zlib/1.2.3.3 libidn/1.15 libssh2/1.2.1
Host: some-host
Accept: */*
Content-Length: 14
Content-Type: application/x-www-form-urlencoded

rr=curl%20test
====

That doesn't follow RFC1738.

That's what I'm speaking about.

-- 
WBR, Andrew

Attachment: signature.asc
Description: PGP signature

Reply via email to