github上说明如下:
命令上传
curl -F file=@http-index-fs http://10.1.xx.60:8080/group1/upload
但是这个file参数该如何写?
参见如下:
curl -F "file=@/opt/test/test.txt" http://172.18.3.50/group1/upload
![]()
file参数也可以用相对路径
![]()
使用curl上传文件到服务器
这篇博客介绍了如何使用curl命令上传文件到服务器。示例中提供了上传命令的格式,包括使用-F标志和file参数。file参数可以是绝对路径或相对路径,例如`file=@/opt/test/test.txt`。博客内容详细解释了curl命令的用法,帮助读者理解如何正确地进行文件上传操作。
github上说明如下:
curl -F file=@http-index-fs http://10.1.xx.60:8080/group1/upload
但是这个file参数该如何写?
参见如下:
curl -F "file=@/opt/test/test.txt" http://172.18.3.50/group1/upload
![]()
file参数也可以用相对路径
![]()
2862
2127

被折叠的 条评论
为什么被折叠?