curl 命令上传文件
curl -H 'access-token:totkeneeee' -F "file=@我的文档.doc" http://127.0.0.1:8080/file/upload
上面这个命令是post请求。-H指定request头中的参数,-F参数指定上传的文件
curl -H 'access-token:totkeneeee' -F "file=@我的文档.doc" http://127.0.0.1:8080/file/upload
上面这个命令是post请求。-H指定request头中的参数,-F参数指定上传的文件
本文标题:curl命令使用
本文链接:https://www.haomeiwen.com/subject/qvxpaqtx.html
网友评论