Help me to send HTTTP POST request to server(instapush)


hi! second in row day try send post request push-notification server(instapush) via esp8266.
so code s send esp8266 is:

at+cipstart=\"tcp\",\"104.239.162.182\",80"

post /v1/post http/1.1\r\n
host: api.instapush.im\r\n"
x-instapush-appid: xxxxxxxxx\r\n";
x-instapush-appsecret: yyyyyyyyy8\r\n";
content-type: application/json\r\n\content - length: 61\r\n\r\n";
{\"event\":\"gradus\",\"trackers\":{\"temperature\":\"777\"}}";

but doesnt work - response 400 (bad requset) doing wrong? please help!

quote
what doing wrong?
you're not posting code.
but knew that.


Arduino Forum > Using Arduino > Programming Questions > Help me to send HTTTP POST request to server(instapush)


arduino

Comments