This article demonstrates how to use the composer of fidller to initiate a request for the Baidu short URL Service API.
1. Enable fiddler and press the shortcut key F12 to disable the packet capture function (packet capture is not performed for HTTP Communication of other processes, while HTTP Communication initiated by fiddler composer is captured ).
2. Switch to the composer tab and follow the input:
3. Click execute. The list on the left will have one more item. Double-click it and switch the request and response to raw to view the following content:
Such a request is complete.
Baidu short Web site home is http://dwz.cn, API description is located in http://dwz.cn/api (the original web site is http://www.baidu.com/search/dwz.html#05 ).
Composer is a very practical function of Fiddler. The API call of Baidu short URL service is actually very simple, but it was not successful several times at the beginning. We found that the dwz.cn Homepage uses Ajax requests, so we caught the request message. Compared with your own request message, after several attempts, we finally found that there is no Content-Type attribute.