Baidu recently do the development of lbs, with a lot of HTTP API access, a moment due to a large number of data access and return do not know how to test, fortunately, Baidu gave a good suggestion is a Chrome browser extension postman, this tool is still very useful to say, At least not after you write a Get or POST method, you have to print log attention whether it is effective or successful. This tool is extremely convenient, you can write the access method first, and then try to successfully access and effectively return to write to the code. Save a lot of testing time, especially for a lot of URL accesses.
Here are some of the tools to use
This tool can send any type of HTTP request including (Get,head,post,put, etc.) and can be shipped with any number of parameters +headers
Attached use
This tool supports different authentication mechanisms, and the received return values are distinguished, and it is clear that different primary key values and variable values can be distinguished. The left side of the browser also retains the history of the API request to look back at the previous request record.
In addition, in the process of downloading the use of postman is really a lot of effort, because the domestic Google is too difficult, so most people are struggling to find agents, but a lot of people like me are still not much interest to engage in these things, So the first thing you can do is download and watch chrome, but you can't get in to the Chrome store or install postman. Finally, it is good to find a postman extension source installation package, only in the end can be used.
To use the following, download the source installation package, change the suffix from CRX to RAR and unzip, and then go to the far right of Chrome's address bar, more tools choose the extension, and first tick the developer mode in the upper right corner after entering the page.
Then choose to load the extension being developed, while entering the file selection interface, select the source installation package just after decompression, OK. The postman is now displayed in the list of extensions and is enabled.
Continue clicking Update Extensions Now, then close the Chrome browser and turn it back on. Re-open the address bar below the left there will be an app button, enter after you can see the Postman extension program. At this point, the browser prompts to stop in the developer mode to run the extension program can completely ignore, continue to complete the test.
: http://download.csdn.net/detail/zhanghaofor/8244137
HTTP access mode Get/post Test Tool postman