SkillAgentSearch skills...

OpenQA.Selenium.Chrome.Fiddler

Extensions for ChromeOptions (Selenium Driver)支持配置拦截或转发指定请求(正则)

Install / Use

/learn @yuzd/OpenQA.Selenium.Chrome.Fiddler
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

OpenQA.Selenium.Chrome.Fiddler

Extensions for ChromeOptions (Selenium Driver)支持配置拦截或转发指定请求(正则)

nuget

OpenQA.Selenium.Chrome.Fiddler

how to use


options.AddFiddler(new FiddlerOption
{
    OnBeforeRequestOptions = new List<FiddlerOnBeforeRequestOptions>
    {
        // 配置转发
        new FiddlerOnBeforeRequestOptions
        {
            Match = "https://www.cnblogs.com/yudongdong/ajax/GetPostStat",//正则
            RedirectUrl = "http://localhost:5000/GetPostStat",//如果匹配成功则将requestBody转发到这个url中去
            Cancel = false//如果配置了cancel=true那么转发将无效,true的意思是直接拦截这次的请求,不去发送了
        },
        // 配置拦截
        new FiddlerOnBeforeRequestOptions
        {
            Match = "https://www.cnblogs.com/yudongdong/ajax/blogStats",
            Cancel = true//true的意思是直接拦截这次的请求,不去发送了
        },
    }
});


image

Related Skills

View on GitHub
GitHub Stars15
CategoryDevelopment
Updated9mo ago
Forks3

Languages

C#

Security Score

67/100

Audited on Jun 22, 2025

No findings