fiddler-006-Modifying HTTP request response data

Source: Internet
Author: User

In the APP test, you often need to modify the request parameters to get different display results to see the corresponding page display processing. For example, the e-commerce shopping app has several statuses (for sale, out of stock, no sale, lower shelf, etc.). At the same time, generally these states are the same button corresponding to a variety of situations, then test the product details, you need to test the display of the button in different state of the product, you need to build different state of the goods, if many people test the operation of different states, then you can not use the same item at the same time test, because the test, Need to modify the status of the product, so many people will have an impact on the test. At this point, the test page shows a friend that can be tested by modifying the HTTP request response data that gets the item details.

The following is an example of modifying the response data for an HTTP request, and simply explaining how to modify the response data for an HTTP request through Fiddler. When initially unmodified, the product price information displayed on the page is as follows:

The following Fiddler modifies the price of the product information response data requested by the vendor so that it should return the product price to 5566.00, returning 3333.00. The following steps are described:

First step: Modify Fiddler interception mode

Depending on the location shown, click on the section in the red box (lower left corner of the Fiddler) until the style in the display, which intercepts the HTTP request response mode.

Step two: Operate the phone, go to get the detailed HTTP request (need to proxy the phone to the computer)

After the client makes the request, Fiddler intercepts the request as shown:

Step three: Revise the product price data that the vendor requests to respond

Modify the product system number:, and then click Continue to send the request button continue to send the request (before sending, the interception mode is cleared), the price of the product displayed on the phone is the revised commodity price information, as follows:

At this point, fiddler-006-modified HTTP request response data successfully completed, I hope this article can give beginners Fiddler you a reference.

Finally, very grateful to the pro-stop, I hope this article can be pro helpful. Warmly welcome the kiss to discuss together and progress together. Thank you so much! ^_^

fiddler-006-Modifying HTTP request response data

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.