fiddlerscript check result after send FiddlerObject.utilIssueRequest(url);

0 Answers 207 Views
Fiddler Classic FiddlerCore
Criter
Top achievements
Rank 1
Criter asked on 03 Feb 2022, 05:55 AM

I need keep sending command FiddlerObject.utilIssueRequest(url);  and read result for stop command and stop working when the required result is achieved

example

stop1  if Body = 170 => send FiddlerObject.utilIssueRequest(url);

stop2  if Body = 170 => send FiddlerObject.utilIssueRequest(url);

stop3  if Body = 310 => send FiddlerObject.utilIssueRequest(url);

 

class Handlers
{
     
           
    public static ToolsAction("Request Once")
    function doItOnce()
    {
        OnTimer(null, null);
    }
 
    public static function OnTimer(sender: Object, ea: EventArgs)
    {
        var s = "POST http://www.bbc.co.uk/ HTTP/1.1\r\nHost: www.bbc.co.uk\r\n\r\n";  
        try{
            FiddlerObject.utilIssueRequest(s);
        }
        catch(e){
            MessageBox.Show("send failed" + e.ToString());
        }
    }
}
Nick Iliev
Telerik team
commented on 04 Feb 2022, 07:50 AM

You can use the OnBeforeRequest event to add a logic that stops specific requests.

No answers yet. Maybe you can help?

Tags
Fiddler Classic FiddlerCore
Asked by
Criter
Top achievements
Rank 1
Share this question
or