Fiddler experiment: Use composer to initiate a request to call the Baidu short URL Service API

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.