Postman如何複製cURL

by 愛狄

Postman如何複製cURL?

成功送出request後

1.找到右側的</> code 點擊

2.可選擇格式,這邊以cURL為例

3.點擊複製

貼上結果示意:

curl –location –request GET ‘https://postman-echo.com/get‘ \ –header ‘Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJzdGFycm93Iiwic3ViIjoiODI4ODAzMTE3ODQxODc3ODExMiIsImlzcyI6InN0YXJyb3ciLCJ0eXAiOiJCZWFyZXIiLCJleHAiOjE2NzA0OTUxNzEsInNpZCI6IjgyODg3Nzc1MTYwNzY5MzMxMjAifQ.k0kyNznoMkjZXfyqAWj00OEsmkRq1SN7ZK2oM5VB4w4’

更多參考

POSTMAN 快速測試 HTTP GET REQUEST

POSTMAN 設定ENVIRONMENT

POSTMAN 設定修改VARIABLE

You may also like