Hello,
Example flow:
[
{
"id": "7f3738a666b6d04a",
"type": "inject",
"z": "dd671a1cf3809c0b",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 500,
"y": 1360,
"wires": [
[
"5c2cf5690476f240"
]
]
},
{
"id": "b02330188bc77446",
"type": "http request",
"z": "dd671a1cf3809c0b",
"name": "",
"method": "POST",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://www.pling.as/psk/push.php",
"tls": "",
"persist": false,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [
{
"keyType": "Content-Type",
"keyValue": "",
"valueType": "application/json",
"valueValue": ""
}
],
"credentials": {},
"x": 790,
"y": 1360,
"wires": [
[
"a3b0130494d0225c"
]
]
},
{
"id": "5c2cf5690476f240",
"type": "function",
"z": "dd671a1cf3809c0b",
"name": "",
"func": "msg.payload = \n\n{\n \"serviceid\": \"<removed>\",\n \"password\": \"<removed>\",\n \"fromid\": \"<removed>\",\n \"phoneno\": \"<removed>\",\n \"txt\": \"This is a test.\",\n \"unicode\": false\n}",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 640,
"y": 1360,
"wires": [
[
"b02330188bc77446"
]
]
},
{
"id": "a3b0130494d0225c",
"type": "debug",
"z": "dd671a1cf3809c0b",
"name": "debug 56",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 940,
"y": 1360,
"wires": []
}
]
This HTTP request does not work (nothing happens). It is supposed to send me a text message via an SMS API.
However, if I try using reqbin.com, it works perfectly.
And I get the SMS.
Why will this not work via Node-RED?