Customize Rules: Host Header did not match URL

1 posts, 0 answers
  1. Alex
    Alex avatar
    1 posts
    Member since:
    Feb 2014

    Posted 24 Feb 2014 Link to this post

    Followed answer from http://stackoverflow.com/questions/11863037/fiddler-how-to-disable-overwrite-header-host

    The Link is for "fiddler: how to disable overwrite Header Host"

    Q: When using Fiddler, it pops up an alert dialog.

    Fiddler has detected a protocol violation in session #14.

    The Request's Host header did not match the URL's host component.

    URL Host: proxy.music.pp.com Header Host: 119.147.22.41

    And it shows that Fiddler changed HTTP Header's host to "proxy.music.pp.com", is there any way to diable Fiddler changing it?

    A:
    You can do this with rules.

    Go into Customize rules, and find the function: OnBeforeRequest(oSession: Session)

    Then add the following as the last line of that function:

    if (oSession.HostnameIs("proxy.music.pp.com")) { oSession.host = "119.147.22.41"; }

    I had this same issue with auto-updates from Avira Servers (Anti Virus).

    As the above suggests I added     
    if (oSession.HostnameIs("personal.avira-update.com")) {oSession.host = "184.51.102.18";}

    In order to find the appropriate host address(es) use cmd.exe and enter nslookup personal.avira-update.com
Back to Top