fiddler: how to disable overwrite Header Host

前端 未结 4 1403
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 18:52

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\'         


        
4条回答
  •  囚心锁ツ
    2020-12-16 19:00

    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"; }
    

提交回复
热议问题