curl:邮件中未指定用于URL的URL

时间:2019-12-08 17:17:38

标签: ubuntu curl notifications telegram telegram-bot

curl -x socks5h://login:pass@ip:port --header 'Content-Type: application/json' --request 'POST' --data '{"chat_id":"chat-id","text":"Bareos: %t %e of %c %l"}' "https://api.telegram.org/bot_api_/sendMessage"

我输入了此请求,但是curl给我有关URL的错误

Message delivery ERROR: Mail program terminated in error. CMD=curl -x socks5h://login:pass@ip:port --header 'Content-Type: application/json' --request 'POST' --data '{"chat_id":"chat-id","text":"Bareos: Backup OK of Server1 Incremental"}' ERR=Child exited with code 2

出什么问题了?

0 个答案:

没有答案