curl --request POST --basic --user uername:pwd -H @header.json --data @body.json
basic auth
--basic
从文件中读取header, body
curl --request POST --basic --user test:test -H @header.txt --data @bodyf.json url
header.txt
Authorization: Basic dGVzdDp0ZXN0
Content-Type: application/json
Accept: */*
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
bodyf.json
your json