cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: curl with multiple -d's not working as I expect.

From: Roth, Kevin P. <kproth_at_mapllc.com>
Date: Fri, 18 Feb 2005 12:34:29 -0500

Each -d is a separate argument. Don't wrap them all inside one set of
quotes, but rather wrap EACH one in quotes.

Like this:

curl -v \
- -d "txtNum=9876543210" \
- -d "txtFrom=kevintm%40blah.com" \
- -d "txtMessage=Help.+Im+caught+in+a+vortex." \
- -d "hdnpublic=1" \
- -d "msgTermsUse=on" www.t-mobile.com/messaging/default.asp

Also, why the extra (?) "-"'s at the beginning of each line? Is that a
shell thing? curl.exe doesn't need it...

- Kevin
Received on 2005-02-18