Search code examples
fiddler

Fiddler Script; default parameter value?


Can't seem to find this on the docs anywhere, or on here.

I have a function; static function Foo(oSession: Session, item1: String, item2: String)

Currently I call it like this; Foo(oSession, "bar", null);

I would like to be able to omit the "null".

Thanks.


Solution

  • C# script is available in Fiddler now and luckily it compiles against .NET 4.0 so optional arguments are supported. So you have to switch to C#.