fiddler saved automatically capture data capture of tips (can be filtered according to demand)

First of all

 

select

If you have other tips, you will be prompted to go pressing, will install an editor, called Fiddler Script.

    Under normal circumstances, you follow the above the following interface will appear after the operation:

 

 

After the bin, press Ctrl + F to find OnBeforeRequest this method, bin, add the following code at the end of this method:

        // filter extraneous requests only concerned with a specific request
        if (oSession.fullUrl.Contains ( "fill in the required domain name grab")) {
            var FSO;
            var File;
            FSO = new new ActiveXObject ( "Scripting.FileSystemObject");
            // file saving path, can be customized
            file = fso.OpenTextFile ( "fill save TXT file address",. 8, to true, to true);
            file.writeLine ( "the Request URL:" + oSession.url);
            file.writeLine ( "the Request header: "+" \ n-"+ oSession.oRequest.headers);
            file.writeLine (" the Request body: "+ oSession.GetRequestBodyAsString ());
            file.writeLine (" \ n-");
            File.close ();

        }

    N OnBeforeResponse again find this method, add the following code to the end of the bin method:

        // filter extraneous requests only concerned with a specific request
        if (oSession.fullUrl.Contains ( "fill in the required domain name grab")) {
            oSession.utilDecodeResponse ();
            // save the request to eliminate possible distortion of the situation
            var FSO;
            var file;
            FSO = new new ActiveXObject ( "Scripting.FileSystemObject");
            // file path, you can customize
            file = fso.OpenTextFile ( "fill in the saved TXT file address", 8, to true, to true);
            file.writeLine ( "the Response code: "+ oSession.responseCode);
            file.writeLine (" the Response body: "+ oSession.GetResponseBodyAsString ());
            file.writeLine (" \ n-");
            File.close ();

        }

Guess you like

Origin www.cnblogs.com/cjyboy/p/11068383.html