[SOLVED] Curl(?) differences linux/windows

It seems that Windows curl doesn’t like single quotes. This works:

curl -g -H "Content-type: application/json" -X POST -d "{\"text\":\"Patrick This is a line of line of text.\"}"

Putting every string in double quotes and escape any double quotes within with a \.
And it needs the header line.

1 Like