cURL

予早 2024-06-29 22:30:32
Categories: Tags:
curl --insecure -H "Content-Type: application/json" -H "Cookie: sessionid=c97b445f-3dcb-4caf-a902-22bb34b49386" -X POST -d "{'id': '121'}" https://xxx.com/api/v1/base/upload/confirm
curl --insecure -H "Content-Type: x-www-form-urlencoded" -H "Cookie: sessionid=c97b445f-3dcb-4caf-a902-22bb34b49386" -X POST -d "{'id': '888'}" https://xxx.com/api/v1/base/upload/confirm
curl localhost:3000/api/multipart -F raw=@raw.data -F hello=world

curl localhost:3000/api/json -X POST -d @data.json --header "Content-Type: application/json"
@后跟文件名