Does FiddlerScript understand Linq?

123 views
Skip to first unread message

edd...@ebay.com

unread,
Mar 23, 2017, 9:01:01 PM3/23/17
to Fiddler
I think Fiddler's CLR version is good enough for some version of Linq, but I have yet to figure out how to get it to understand something easy like:

bool b = arrSess.Any(s=>s.HostnameIs("localhost"));

Is this because FIddler does not load the assembly needed? If so, is there a way to default FIddler to loading more assemblies, both for coding in the ScriptEditor and executing in Fiddler?


Eric Lawrence

unread,
Mar 27, 2017, 2:41:01 PM3/27/17
to Fiddler
Thanks for asking about this-- finally an excuse for me to try out the C# scripting engine.

To use Linq in FiddlerScript, you must be using the C# scripting engine and you must add System.core.dll inside Tools > Fiddler Options > Scripting. Add using System.Linq; to the top of your C# script file.

After you make these changes, Linq seems to work great!
Reply all
Reply to author
Forward
0 new messages