cURL / Mailing Lists / curl-users / Single Mail

curl-users

Passing spaces to Mailchimp with JSON & Windows

From: Owen Watson <o.m.watson_at_gmail.com>
Date: Tue, 17 Dec 2013 18:50:51 +1300

I'm trying to pass a JSON call to MailChimp via commandline Windows and not
having much luck.
I'm using
curl --insecure -d {JSON call} https://us1.mailchimp.com/list/subscribe
In the JSON call it works fine if there's no spaces, as you'd expect, but
as soon as you introduce spaces, even if you replace them by + or %20 it
falls over.
Do I have to use something else, or escapes?

-- 
Owen Watson

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-17