Help me to send a simple HTTP post - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Help me to send a simple HTTP post (/showthread.php?tid=3467) |
Help me to send a simple HTTP post - pouralise - 12.07.2021 I want to send a HTTP post like this Code: POST /person/takeFacePicture HTTP/1.1 or via curl Code: curl --location --request POST 'https://partner.hanet.ai/person/takeFacePicture' \ How can I write the code? I'm a novice so I read other similar thread but still dont know how to do. Please help me with this example RE: Help me to send a simple HTTP post - admin - 12.07.2021 Try this, change data inside encodepost table as needed: Code: require('socket.http') RE: Help me to send a simple HTTP post - pouralise - 12.07.2021 Thank you, it works like a charm. I have another question, can Logic Machine get HTTP post? Like the logicmachine IP is 192.168.1.10 and another device send this to logic machine Code: [code]POST / HTTP/1.1 Can Logic machine receive it and get the data like "placeID" = "108"? |