A Fiddler 4 extension, use to create a file with format lines from the requests/responses.
Fiddler 4 : https://www.telerik.com/download/fiddler
-
Download the codes, and compile it directly. (Please goto http://www.telerik.com/fiddler to download the Fiddler4 first. The reference file is the main entry of Fiddler4, named as Fiddler.exe.)
-
Copy the Compiled result: WebApiDocumentCreator.dll and Newtonsoft.Json.dll into folder %Fiddler install path%/Scripts/. My Fiddler 4 is installed into C:/Program Files (x86)/Fiddler/, then I need to copy these two dlls into C:/Program Files (x86)/Fiddler/Scripts
-
Restart the Fiddler.
-
Select the sessions.
-
Find the Tab named "WebApi" in right panel of Fiddler. Select it.
-
Select the data you want to export.
-
Select the Export Location. Please remember to write the filename after the folder selection.
-
Then click Export. All selected sessions will be exported into the selected file with Json format. One session one line.
-
If you are an advanced user, you can use the Templated Exportor.
These placeholders can be used (Case sensitive):
Url
Method
ContentType
RequestData
RequestHeader
ResponseData
ResponseHeader
StatusCode
RequestHeader:[headerName]
ResponseHeaders:[headerName]
For example:
template: {url:(Url), setcookie:(ResponseHeaders:Set-Cookie)}
exported line: {url:"http://www.goolge.com", setcookie:["cookie1", "cookie2"]}
Json format template is recommanded, because the Array value is serialized into Json Array.