How do I perform a PInvoke in a fiddler JScript.NET function?

183 Views Asked by At

Fiddler uses the .NET JScript language for scripting. Invoking .NET methods and initiating .NET classes is easy, but I can't figure out how to decorate things with attributes, and therefore I don't know how to PInvoke.

1

There are 1 best solutions below

1
On

The default FiddlerScript shows a few sample attributes (e.g. ToolsOptions, RulesOption, etc are all attributes).

But if you're to the point where you're calling PInvoke, you probably want to skip the script engine entirely and write your extension in C# or another richer managed language. See http://www.fiddler2.com/fiddler/dev/IFiddlerExtension.asp for more information.