Enter HTTP URL
1, Authorization contains Type, our remote interface uses
HTTP Basic Authentication, so Type: Basic Auth
2, Headers
content-type: application/json
Click Authorization
to enter Username, Password, and check save helper data To request ,
there will be an additional line of
Authorization:Basic dGVzdDI6dGVzdDg4Kioq
3, Body
select raw, input request parameters
eg: https://test.baidu.com/api/Subject/:id
This parameter is directly behind the URL , it will automatically pop up key-Value-edit
https://test.baidu.com/api/query
This kind of request parameter is to be written in body>raw
Click interface, there will be a return result
. According to the status and return content get content
How to set up Postman to call http interface
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326179571&siteId=291194637
Ranking