Simulate HTTP requests with Postman

Postman is a powerful front-end debugging tool. Developers often need to debug interface programs, such as RestAPI, by sending different HTTP requests to the server to determine whether the returned results of the interface are correct.

There are two ways to use Postman: the Chrom plug-in method and the local installation method. The local installer is more powerful, so it is recommended to download it.

method/step

 
  1.  

    Download Postman, search for postman on Baidu, open the official website, and choose different versions to download according to your operating system.

    Simulate HTTP requests with Postman
  2.  

    After downloading and installing, open Postman, and click Allow access to the network if it is blocked by antivirus software.

    Simulate HTTP requests with Postman
  3.  

    Register and log in. If you already have a Google account, you can use the Google account to log in. If you don't have it, you can register a Postman account for free.

    Simulate HTTP requests with Postman
  4.  

    To test the web interface, take the interface of the WeChat official account to obtain user increase or decrease data as an example, select the HTTP request type, enter the API address, and click the Send button. In addition, the corresponding results can be saved at the same time as Send.

    Simulate HTTP requests with Postman
  5.  

    Save the request content. After setting the sending content, it is better to save the request content in order to reuse it. Click the Save button, fill in the request description information, select the request save location, and click the Save button.

    Simulate HTTP requests with Postman
    Simulate HTTP requests with Postman
  6.  

    To execute requests in batches, after saving multiple requests in the Collection, move the mouse over the Collection, click the > icon, and click the Run button in the newly appeared window.

    Simulate HTTP requests with Postman
  7.  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325187654&siteId=291194637