Hi. Can anybody help me with simple extension. I am following fiddler's specification but even simple example wont work for me.
I did next steps:
1) Create new C# Class Library project
2) Put code from example in to the class1.cs
3) Compile Release version with Target framework.Net Framework 4.
4) Copy FiddlerTest.dll in to C:\Program Files (x86)\Fiddler2\Scripts directory and restart Fiddler.
After restart Fiddler Log tab doesn't contains my test messages. Also Extensions tab in the Fiddler option window shows only default extensions.
Fiddler version is v4.4.8.0, OS: Win 8.1 (64-bit).
Code:
01.
using
System;
02.
using
System.Windows.Forms;
03.
using
Fiddler;
04.
05.
[assembly: Fiddler.RequiredVersion(
"2.3.5.0"
)]
06.
07.
public
class
Violin : IAutoTamper
08.
{
09.
string
sUserAgent =
""
;
10.
11.
public
Violin()
12.
{
13.
sUserAgent =
"Violin"
;
14.
15.
FiddlerApplication.Log.LogString(
"Test message from custom extension"
);
16.
}
17.
18.
public
void
OnLoad() {
19.
20.
FiddlerApplication.Log.LogString(
"Test message from custom extension - method OnLoad"
);
21.
}
22.
public
void
OnBeforeUnload() {}
23.
24.
public
void
AutoTamperRequestBefore(Session oSession)
25.
{
26.
oSession.oRequest[
"User-Agent"
] = sUserAgent;
27.
}
28.
public
void
AutoTamperRequestAfter(Session oSession) { }
29.
public
void
AutoTamperResponseBefore(Session oSession) { }
30.
public
void
AutoTamperResponseAfter(Session oSession) { }
31.
public
void
OnBeforeReturningError(Session oSession) { }
Any suggestions?