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

How to automaticly save or export the packets which I'm interested in?

1 Answer 91 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Stephen
Top achievements
Rank 1
Stephen asked on 15 Jan 2015, 05:48 AM
Hi Eirc,
     Thank you for your wonderful Fiddler first of all.
     I want use Fiddler Script to save or export the packets I'm interested in automaticly.But I don't know how to do.
     
    For example,I need to save all the packet to the destination hostname 'www.xxx.com'.
    I think I can add the auto save code like this:

    if (oSession.host.indexOf("www.xxx.com") > -1) {
     //save or export the packet to my own file
   }

   Does Fiddler Script supports write data to local file,And how to do it ?

   Maybe there's some other way to export or save the specific packets automaticly ,would you please tell us how to ?
   
   Thanks.

Stephen
   

1 Answer, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 15 Jan 2015, 05:18 PM
Hi, Stephen--

There are many different ways to do what you describe, depending on what exactly you plan to do with the saved sessions, how many you think will be captured, and so on.

Without writing any code at all, you could do this with a combination of Fiddler's Filters tab and the Tools > AutoSave menu.

Using FiddlerScript, you could save in other formats to the file of your choosing; FiddlerScript is simply JScript.NET, so you can use any of the methods in the .NET Framework (e.g. the System.IO classes) to save data. Or you can use the appropriate methods on the Session objects.

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Fiddler Classic
Asked by
Stephen
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Share this question
or