Search code examples
bashpostbash4

Bash - POST : send image in message content


I would like to send POST message using bash script.In body there should be image but i don't know how to put them.


Solution

  • You can use cURL for that:

    curl -F File=@/path/to/your/file http://your.url
    

    If that does not work, please add more details to your question.