bash

curl

July 18, 2024
curl, bash

常用命令 # 文件上传 curl -F "file=@./1.jpg" -X POST "http://localhost:8080/upload" # 上传多个 curl -F "upload=@./1.jpg" -F "upload=@./2.jpg" -X POST "http://localhost:8080/uploadMul 代理IP curl -x {proxyserver}.com -U "{username}-zone-custom-region-ru-session-31fa4be5f7fa2389-sessTime-3:{passwd}" https://jsonip.com/ Post Json curl -X POST -H "Content-Type: application/json" -d '{"key1":"value1","key2":"value2"}' http://example.com/api/resource