Skip to content

Instantly share code, notes, and snippets.

@nazt
Last active January 7, 2020 16:01
Show Gist options
  • Save nazt/95ee8bec18eb28dbc3115dd46bd818f1 to your computer and use it in GitHub Desktop.
Save nazt/95ee8bec18eb28dbc3115dd46bd818f1 to your computer and use it in GitHub Desktop.
curl.sh
curl --header "Content-Type: application/json" \
--request POST -v \
--data-binary '{"sta_ssid":"xyz","sta_password":"xyz"}' \
http://192.168.4.1/api/wifi/sta
curl -X POST -d "sta_ssid=weerawan&sta_password=87654321" http://192.168.4.1/api/wifi/sta
curl -X POST -d "sta_ssid=ampere&sta_password=espertap" http://192.168.4.1/api/wifi/sta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment