Skip to content

Instantly share code, notes, and snippets.

@kenji0x02
Created January 13, 2014 05:27
Show Gist options
  • Save kenji0x02/8395180 to your computer and use it in GitHub Desktop.
Save kenji0x02/8395180 to your computer and use it in GitHub Desktop.
curlでpostは`-d`でデータを指定する。
#!/bin/sh
curl -d 'mode=warm&temperature=20&windSpeed=1&power=false' localhost:4567/aircon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment