我正在尝试使用pushover,但得到以下错误:
$ /usr/bin/curl -s \
--form-string "token=mysecrettoken" \
--form-string "user=mysecret user" \
--form-string "hola!" \
https://api.pushover.net/1/messages.json
curl: option --form-string: is badly used here
curl: try 'curl --help' or 'curl --manual' for more information我做错了什么?
curl --version
curl 7.47.0 (x86_64-pc-linux-gnu)发布于 2019-01-18 06:24:19
如果使用read the manual,则--form-string方法的用法如下:
--form-string <name=string>您的错误在以下时间生成:
--form-string "hola!"因为它不包括键的值;简单地添加=会导致这个错误消失,因为它会将其转换为键/值对。
--form-string "hola!="https://stackoverflow.com/questions/54245052
复制相似问题