Simulate a specific CURL in PostMan

前端 未结 7 1798
不思量自难忘°
不思量自难忘° 2020-11-28 02:03

I am using Postman to test some Curl requests to an API server. The API developers gave us the curl command, but I can\'t send it from the Postman. How to make such a reques

7条回答
  •  执笔经年
    2020-11-28 02:33

    In addition to the answer
    1. Open POSTMAN
    2. Click on "import" tab on the upper left side.
    3. Select the Raw Text option and paste your cURL command.
    4. Hit import and you will have the command in your Postman builder!
    5. If -u admin:admin are not imported, just go to the Authorization 
       tab, select Basic Auth -> enter the user name eg admin and password eg admin.
    This will automatically generate Authorization header based on Base64 encoder
    

提交回复
热议问题