Im trying to get this curl command to work:
String Turf "thecurl" { exec="<[curl -d \"[{name:drassen}]\" -H \"Content-Type: application/json\" -s -S -v http://api.turfgame.com/unstable/users:10000:]" }
In a terminal it works perfectly, but in openhab no luck.
What i found to be suspiscious is the quotes around my submitted content type…and the default one isnt replaced:
Connected to api.turfgame.com (54.247.177.4) port 80 (#0)
POST /unstable/users HTTP/1.1
Host: api.turfgame.com
User-Agent: curl/7.43.0
Accept: /
“Content-Type: application/json”
Content-Length: 16
Content-Type: application/x-www-form-urlencoded
Anyone? i tried to use ', ", ", ' but nothing changes.