This is a migrated thread and some comments may be shown as answers.

Customize Rules: Host Header did not match URL

0 Answers 451 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 25 Feb 2014, 02:44 AM
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

No answers yet. Maybe you can help?

Tags
Fiddler Classic
Asked by
Alex
Top achievements
Rank 1
Share this question
or