First, environmental preparation

Visual Studio 2015, Fiddler 5.0

Ii. New construction projects

1. Create a project

Select new project, select class library, because Fiddler5.0 uses. Net4.6.1, so select. Net4.6.1

Create a project

2. Add Fiddler libraries

Right-click the project and select Add Reference, click Browse, then go to Fiddler’s installation address and select Fiddller.exe to add

Add reference
browse

3. Add Fiddler version requirements

Assemblyinfo.cs, add the requested Fiddler version information, because you are using Fiddler5.0, so the version number should be Fiddler5.0 or higher. Net4.0 architecture)

[assembly: Fiddler.RequiredVersion("5.0.0.0")]
Copy the code

Version for

Third, Hello Word

2. Inherit IFiddlerExtension class and implement OnLoad and OnBeforeUnload functions

public class Main : IFiddlerExtension
{
    public void OnBeforeUnload()
    {}

    public void OnLoad() {}}Copy the code

Add a reference to System.windows. Forms and add using System.windows. Forms to Main and inherit UserControl from Main

TabPage = new TabPage()"Hello World"); / / will join the Fiddler page TAB TAB FiddlerApplication. UI. TabsViews. TabPages. Add (page); / / output Hello World FiddlerApplication. DoNotifyUser ("Hello"."Hello World");
Copy the code

Four, packaging test

Copy the. DLL files from the bin\Debug folder in the Fiddler installation directory to the Scripts folder in Fiddler installation directory. 3. Restart Fiddler, as shown in the following figure

bounced
The plug-in

Series of articles

  • A, Hello World
  • Global styles
  • Static pages
  • 4. Data layer
  • Global events
  • The HOST event
  • 7. HOST mapping
  • Eight, to optimize
  • Executable files

Resources to recommend

  • Fiddler plug-in development guide source code
  • Fiddler – FPlug plug-in
  • Whistle. FPlug plug-in