UDP examples Set H="Content-Type: application/json" URL=http://localhost:9009/ and use it this way curl -H "$H" -d "$D" -X POST $URL D='{"Action":"UDP","Host":"_____","Port": _____,"Value":"Sw_off1<usr><pwd>"}'