how to load a saved fiddler request?

4,346 views
Skip to first unread message

fiddler_2020

unread,
Dec 16, 2012, 7:16:15 PM12/16/12
to httpf...@googlegroups.com
Hello - In the "Web Sessions" left-hand panel in Fiddler I can right click on a previous Web Session and select Save > Request > Entire Request. My example below is a WCF REST svc inserting a new customer named "Andrew Jackson." The contents of the saved file will look something like this:

POST /WcfTester/RestTest.svc/Customers/ HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: localhost:49447
Content-Length: 54
Allow: POST

{ "Id":1,"'FirstName":"Andrew", "LastName":"Jackson" }

How can I restore this saved request for a future request in Fiddler?  Of course I can open the saved request in Notepad and simply copy and paste the contents into the appropriate inputs in Fiddler.  However, it seems like there should be some sort of import functionality for this type of file through the Fiddler UI. Do you know how to do this?

Chad

unread,
Dec 16, 2012, 9:55:29 PM12/16/12
to httpf...@googlegroups.com
It sounds like you want to export, then import web sessions.  Select the sessions you want and Right-Click > Save > Selected Sessions > ArchiveZip 

This creates a .saz file that you can then drag/drop in the session area (or File > Load Archive).  Then, just right click the sessions you want and Replay > Reissue Requests.

If you want to "fiddle" with a request, you can drag/drop it into the Composer tab and change the headers/body.

To get more programmatic, you can File > Export > "Visual Studio Web Test" or you can use the Request To Code extension (I created it) to get code appropriate to reproduce the request and then put that in a program of your choice.

EricLaw

unread,
Dec 17, 2012, 11:17:36 AM12/17/12
to httpf...@googlegroups.com
Chad is correct on all fronts, but it may be helpful if you step back and describe your overall goals in more detail. There may be an even better way to accomplish what you're hoping.
 
thanks!

EricLaw

unread,
Feb 14, 2013, 2:39:42 PM2/14/13
to httpf...@googlegroups.com
I think you're confused about what Fiddler's term "Web Session" means. In the context of Fiddler, this consists of a single request/response pair.
 
You can replay any web session trivially, by using the "Replay" option on the toolbar or context menu. Or you can drag/drop the Session to the Composer and hit execute. Or you can drag/drop the Session to the Composer's Scratch subtab and later execute it by simply selecting its text and clicking Execute.
Reply all
Reply to author
Forward
0 new messages