cURL

cURL - command line tool and library for transferring data with URLs. Available for most of platforms.

  • Linux - can be installed with package installer.
  • macOS - Homebrew or MacPorts
  • Windows - download binary file and unpack it to some directory and add it to PATH.

Usage

curl -H "Content-Type: application/json" -X POST -d <body> <link>

curl -H "Content-Type: application/json" -X POST -d '{"username": "test", "content": "hello"}' https://discordapp.com/api/webhooks/203019812404264973/rptBmYgoehu70kw2rItSlhRqKi7kMJh1bM2KCUUD2vR6grZckvtdl62h4xR7XWUS5463

# -H "Content-Type: application/json" - header that tells server that you are sending JSON data
# -X POST - use POST method
# -d '{"username": "test", "content": "hello"}' - adds data to request
url='https://discordapp.com/api/webhooks/203019812404264973/rptBmYgoehu70kw2rItSlhRqKi7kMJh1bM2KCUUD2vR6grZckvtdl62h4xR7XWUS5463'
curl -H "Content-Type: application/json" \
-X POST \
-d '{"username": "test", "content": "hello"}' $url
# you can make command multiline using backslash `\` and set url as variable
# so you don't need to paste it again and again. As option you can add it to your `.*rc` file