[英]convert a postman post request to get token into a curl request
我有一個與 postman 配合良好的發布請求,我嘗試將其轉換為 cUrl 請求,以通過提示命令使用它或導入 Postman。
如果“KEY”字段為空,它將不起作用。
這是我嘗試過的: curl --header "Content-Type: x-www-form-urlencoded" \ --request POST \ --data '{"resource":"https://xxxxx.com/resources","scope": "openid","client_id":"xxx-xxx-x-xxx","client_secret":"xxxx-xxxxxx-xxxx"}' \ https://xxxxx-xxxxx.com/api/token
在 Postman 中,結果是“錯誤請求”。
謝謝你的幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.