This is a migrated thread and some comments may be shown as answers.

Dumping Data From Fiddler in HTTP Archive Format

2 Answers 355 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Rushikesh
Top achievements
Rank 1
Rushikesh asked on 24 Jan 2018, 11:21 AM

Hey,

I am trying to dump data to a file automatically. I have added the following in " OnBeforeResponse" of fiddler script.

if (oSession.url.Contains("?_ctrl-state=")) {
          var directory: String = "D:\\me\\usefull\\data";
          var path: String = System.IO.Path.Combine(directory, Guid.NewGuid() + ".json");
          oSession.utilDecodeRequest();
          oSession.utilDecodeResponse();
          oSession.SaveSession(path , false);
      }

 But when I do File>ExportSession>SelectedSession i can see list of file formats in which the same session data can be stored. Is there any way that i can save the file in HTTP Archive format using the script.

 

Thanks 

Alle

2 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 29 Jan 2018, 10:15 AM
Hello,

Yes, you can export in all formats that are listed in the export session window. You should use FiddlerApplication.DoExport instead of Session.SaveSession. The sExportFormat argument should match the label shown in the export session window.

Regards,
Alexander
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Alexander
Telerik team
answered on 29 Jan 2018, 10:24 AM
Hello again,

I forgot to mention how you set the output file path. You can do this by adding an entry to the dictOptions argument with key "Filename" and value the path to where it should be written.

Regards,
Alexander
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Fiddler Classic
Asked by
Rushikesh
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or