F
F
Father42021-11-28 00:48:25
bash
Father4, 2021-11-28 00:48:25

Webhook parser in bash?

There is a number on a virtual PBX from MCN Telecom, it allows you to configure work via Webhook.
There is a task to receive data on calls and Bash a script. Help me to understand. I installed the webhook package, the data comes in, but I can’t read it in the bash script

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey c0re, 2022-01-26
@erge


#!/bin/bash
echo [email protected]

Output is empty

POST request data is not passed to cgi bash script as parameters!
most likely in a bash script you need to read stdin
like this:
#!/bin/bash
read POST_STRING
echo $POST_STRING

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question