# \[SOLVED\] Curl(?) differences linux/windows

**URL:** <https://forum.mattermost.com/t/solved-curl-differences-linux-windows/3784>\
**Category:** Command Line Interface\
**Created:** [August 29, 2017, 1:59pm UTC](https://forum.mattermost.com/t/solved-curl-differences-linux-windows/3784 "2017-08-29T13:59:55Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![hjb](https://avatars.discourse-cdn.com/v4/letter/h/7ea924/32.png) [@hjb](https://forum.mattermost.com/u/hjb)\
**Post date:** [August 31, 2017, 12:47pm UTC](https://forum.mattermost.com/t/solved-curl-differences-linux-windows/3784/9 "2017-08-31T12:47:57Z")

</div>

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.

---

_[View the full topic](https://forum.mattermost.com/t/solved-curl-differences-linux-windows/3784)._
