Curl

From ElectroDragon
Jump to: navigation, search

Quotation mark in different OS

Original Linux command:

curl -X POST -H Content-Type:application/json -d '{"freq":100,"rgb":{"red":200,"green":0,"blue":0}}' http://ip/config?command=light

In windows, curl commands should be changed:

curl -X POST -H Content-Type:application/json -d "{\"freq\":100,\"rgb\":{\"red\":200,\"green\":0,\"blue\":0}}" http://ip/config?command=light