linux下调取curl命令
post–json格式:
curl -H "Content-Type:multipart/form-data" -X POST -F "file=@/filepath" -F 'info={"":""}' ip:port/xxx
post–文件上传格式:
curl -H "Content-Type:multipart/form-data" -X POST -F "file=@/filepath" -F 'info={"":""}' ip:port/xxx
get请求:
curl --location --request GET 'ip:port/xxx'