This is a migrated thread and some comments may be shown as answers.

reissue XML request every x seconds ADVANCED !

1 Answer 144 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
asia
Top achievements
Rank 1
asia asked on 17 Aug 2017, 12:04 AM
Hi i noticed there is an autoresponder for responces but no "auto-requester" for requests. How can i bypass a software sending requests to a server (via xml form) and expecting a reply from the server? 

I want to block the software that sends an xml "keep alive" session POST and instead use fiddler to send requests every 1 second and the software receive the replies only BUT BLOCK its requests and instead use fiddler in a timely manner to auto issue every second a previously saved sent request that i already have captured.

Can this be done ? I have the script below from this forum but i don't know how to use it to POST a request in xml form

cheers


public static ToolsAction("Request by Timer")
function doIt()
{
var oTimer: System.Windows.Forms.Timer = new Timer();
oTimer.add_Tick(OnTimer);
oTimer.Interval = 3000;
oTimer.Start();
}

public static function OnTimer(sender: Object, ea: EventArgs)
{
var s = "GET /gallery/image1.htm HTTP/1.1\r\nHost: www.example.com\r\nX-My-Num: 1\r\n\r\n"; 
try{ 
FiddlerObject.utilIssueRequest(s); 

catch(e){ 
MessageBox.Show("send failed" + e.ToString()); 

}

1 Answer, 1 is accepted

Sort by
0
asia
Top achievements
Rank 1
answered on 18 Aug 2017, 01:29 AM
nevermind ignore this !
Tags
Fiddler Classic
Asked by
asia
Top achievements
Rank 1
Answers by
asia
Top achievements
Rank 1
Share this question
or