# Http with rasp pi 4

**URL:** <https://discourse.nodered.org/t/http-with-rasp-pi-4/79168>\
**Category:** General\
**Created:** [13 June 2023 10:01 UTC](https://discourse.nodered.org/t/http-with-rasp-pi-4/79168 "2023-06-13T10:01:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![issambfs1](https://avatars.discourse-cdn.com/v4/letter/i/ea666f/32.png) [@issambfs1](https://discourse.nodered.org/u/issambfs1)\
**Post date:** [13 June 2023 10:01 UTC](https://discourse.nodered.org/t/http-with-rasp-pi-4/79168/1 "2023-06-13T10:01:51Z")

</div>

hi . is there anyone have an idea about how can i get or post http via serial node . i m connecting sim900 to pi via tx rx

i already send the msg via sms

```auto
[{"id":"c8b7034bc8dfcbf9","type":"inject","z":"6a54e01602038910","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":190,"y":180,"wires":[["ea2ef391a1dabcd1"]]},{"id":"ea2ef391a1dabcd1","type":"function","z":"6a54e01602038910","name":"function 98","func":"// Change the phone number and message to your desired values\nvar phoneNumber = \"068 ***** 5\";\nvar message = \"This is from Node-RED msg testing\";\n\n// Format the AT command\nvar atCommand = 'AT+CMGS=\"' + phoneNumber + '\"\\r\\n';\natCommand += message + '\\x1A';\n\n// Pass the AT command to the next node\nreturn { payload: atCommand };\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":180,"wires":[["b05d6dab4b07ca49"]]},{"id":"b05d6dab4b07ca49","type":"serial out","z":"6a54e01602038910","name":"","serial":"724c7d42.82437c","x":680,"y":160,"wires":[]},{"id":"2a5005a5c67b7132","type":"serial in","z":"6a54e01602038910","name":"","serial":"63d0c550186f5268","x":460,"y":220,"wires":[["0fefbb6bb9afa099"]]},{"id":"0fefbb6bb9afa099","type":"debug","z":"6a54e01602038910","name":"debug","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":890,"y":220,"wires":[]},{"id":"724c7d42.82437c","type":"serial-port","z":"6a54e01602038910","serialport":"/dev/ttyS0","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","newline":"\\n","bin":"false","out":"char","addchar":false,"responsetimeout":"10000"},{"id":"63d0c550186f5268","type":"serial-port","serialport":"/dev/ttyS0","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline":"\\n","bin":"false","out":"char","addchar":"","responsetimeout":"100"}]

```

need idea how can i post http via serial .  
and thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 August 2023 10:02 UTC](https://discourse.nodered.org/t/http-with-rasp-pi-4/79168/2 "2023-08-12T10:02:37Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
