Issue
I want to send a Webhook Using The CMD Command line Curl However the command i made:
curl -X POST --data '{"content": "Posted Via Command line"}' --header "Content-Type:application/json" discord-webhook-link
Returns This Message
curl: (3) [globbing] unmatched close brace/bracket in column 24
{"message": "400: Bad Request", "code": 0}
Is there a way I can send a Discord Webhook message via the command Line?
Solution
the following syntax is working for me, maybe give it a try.
curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"content\": \"Posted Via Command line\"}" discord-webhook-link
Answered By - Dirk Answer Checked By - Candace Johnson (WPSolving Volunteer)