Monitor traffic to localhost from IE or. NET

Source: Internet
Author: User

Original: http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/MonitorLocalTraffic Monitor traffic to localhost from IE Or. NET

To monitor traffic sent to http://localhost or http://127.0.0.1 from IE8 or below or the. NET Framework:

  • Use your machine name as the hostname instead of Localhost or 127.0.0.1

    For example, instead of

      http://localhost:8081/mytestpage.aspx

    Go to:

      http://machinename:8081/mytestpage.aspx
  • Use one of these addresses:

    -to Use the IPV4 adapter (recommended for the Visual Studio test webserver, Codename:cassini):

      http://ipv4.fiddler

    -to Use the IPV6 adapter:

      http://ipv6.fiddler

    -to use localhost in the Host header:

      http://localhost.fiddler
  • Click rules > Customize Rules ... and add this code to the rules file:

    Static function onbeforerequest  (osession:fiddler.< Span class= "Typ" >session) {if (osession. Hostnameis "MYAPP"   { Osession. Host =  "127.0.0.1:8081" ;}}          /span>                

    Now, Http://myapp would act as an alias for 127.0.0.1:8081

Monitor traffic to localhost from IE or. NET

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.