I am working on a client request where I need to capture web browser traffic using fiddler and export it to local drive.
I am enter some data in web browser and the same is captured as request in Fiddler session.
As per my understanding of Fiddler the script should execute as soon as any web session is captured.
In order to export the request from Fiddler I am using the below code in OnBeforeRequest function in Fiddler script
if(oSession.url =="www.google.com"){
oSession.utilDecodeRequest();
oSession.SaveRequest("C:\\Downloads\request.txt",true);
oSession.SaveRequestBody("C:\\Downloads\requestBody.txt");
}
Any suggestion why the request is not getting saved as a text file as I have mentioned in the above code.
The file is getting generated successfully. There was admin right issue.
Re installed fiddler with admin rights and the files got generated successfully.