public variable

36 views
Skip to first unread message

Farshad Sohrabi

unread,
May 31, 2019, 12:44:58 AM5/31/19
to Fiddler
can any body tell me how do i create a global variable in fiddler

EricLaw

unread,
Jun 5, 2019, 5:35:44 PM6/5/19
to Fiddler
Please explain more fully what you mean by "global variable"? Fiddler's Preferences system provides a mechanism for sharing bits of data between Fiddlerscript, extensions, the UI, etc. Or perhaps you're just looking for a FiddlerScript variable, in which case it's just JavaScript, so you'd do something like

  var myVariable = 1;


inside the Handlers class.

Farshad Sohrabi

unread,
Jun 6, 2019, 7:16:07 AM6/6/19
to Fiddler
thank for the reply.
i mean a varibale that can be accsesed by all the functions.
and i find the solution.
public static var varname = intialvalue;

Farshad Sohrabi

unread,
Jun 6, 2019, 7:19:06 AM6/6/19
to Fiddler
i want to route the incoming trafic from specific invalid ip to diffrent valid ip's after i do some changing to terfic with fiddler.
Reply all
Reply to author
Forward
0 new messages