Duccio Fabbri
Duccio Fabbri

Reputation: 1008

Save values and use it thrught all subsequent redirect in Fiddler

I want to save a value in a variable and use it in following requests. How can I save data in a persistent way?

Upvotes: 0

Views: 39

Answers (1)

Duccio Fabbri
Duccio Fabbri

Reputation: 1008

I solved my problem saving my data in a file and than I read it in the next request:

    var fso = new ActiveXObject("Scripting.FileSystemObject"),
    thefile=fso.CreateTextFile("C:\\temp\\bogusToken.txt",true);
    thefile.Write(token);
    thefile.Close();
    ...
    my_Token = File.ReadAllText("C:\\temp\\bogusToken.txt");

Upvotes: 0

Related Questions