cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: corect use of curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 25 Mar 2011 13:56:53 +0100 (CET)

On Fri, 25 Mar 2011, John Norris wrote:

> So do the single quotes need to be escaped? The double quotes?

On Windows you can't use single-quotes like that, and you need to escape the
double-quotes within the string.

Ok, I'm not a Windows guy really but let me try. For a recent enough Windows
you should be able to escape double-quotes with ^.

Like your:

> '{"param1" : "TS-1", "param2" : "10003"}'

Would then rather be written like:

"{^"param1^" : ^"TS-1^", ^"param2^" : ^"10003^"}"

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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 2011-03-25