0
我想使用curl将文件上传到服务器。它应该被上传的二进制文件无论何种格式,它是,但我有一个错误:无法上传文件到使用卷曲的服务器
curl -d @/home/alex/123.log localhost:9000/myupload/
错误(警告,实际上)是
Warning: Couldn't read data from file "123.log", this makes an empty POST.
附:我不应该使用--data-binary
而不是-d
?我没有找到--data-binary
的任何文档。
它可能是一个权限问题(您的用户对此文件没有读取权限),或者只是文件不存在(路径中的拼写错误?)。 – deltheil