curl-users
Re: showing url encoded data with --form and -v
From: Daniel Stenberg <Daniel.Stenberg_at_haxx.nu>
Date: Mon, 14 Feb 2000 08:17:15 +0100
Date: Mon, 14 Feb 2000 08:17:15 +0100
"H. Nanosecond" wrote:
> does not diplay the url-encoded
> data that it sends to the server with curl --form name=content -vv
Nope, it doesn't. That's because the --form option creates a
multipart/form-data posting, which isn't at all that commonly used as the
application/x-www-form-urlencoded style that --data does.
I know this is confusing to many people and that the docs may not give a
very clear distinction, but -F/--form and -d/--data are not freely
interchangable. You need to use the one that fits the form you're about to
"fill in".
> It does show it with --data , though.
Then use the --data. That's the way to do it.
-- Daniel Stenberg - http://www.contactor.se/~dast - +46-705-44 31 77 ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`olReceived on 2000-02-14