Page 1 of 1

PostToHTTP

Posted: 12 Feb 2023, 12:55
by wiredcharlie
I'm trying to do the equivalent of:
curl -X POST http://192.168.1.102/reboot.json

I tried this in Tools-Command

PostToHTTP,http://192.168.1.102,,reboot.json

Command Output
Command unknown: PostToHTTP,http://192.168.1.102,,reboot.json

Does this mean that the build I'm using doesn't include PostToHTTP?
(ESP_Easy_mega_20221224_normal_ESP8266_4M1M)

I looked at:
https://espeasy.readthedocs.io/en/lates ... mmand.html

Help appreciated,
Tony

Re: PostToHTTP

Posted: 12 Feb 2023, 13:30
by iron

Re: PostToHTTP

Posted: 12 Feb 2023, 13:32
by Ath
That release doesn't have the PostToHTTP command included, as it was merged only recently. Download a recent Github Actions build to use that command.

NB: We are planning to have a new official release, probably in the upcoming week (but no official ETA).

Re: PostToHTTP

Posted: 12 Feb 2023, 15:16
by wiredcharlie
Thanks!

This worked:
PostToHTTP,http://192.168.1.102/reboot.json

ESP_Easy_mega_20230204_normal_ESP8266_4M1M

https://github.com/letscontrolit/ESPEas ... /541875390