Reputation: 29
I want to send a request with fiddler and want to send it every second same request.Is there any way to make this with fiddler.
Upvotes: 2
Views: 3027
Reputation: 12497
I would use curl with a batch file to do just that
From Fiddler, select one or more requests you want to repeat and head over to File > Export Sessions > Selected Sessions
Now select Curl Export and save the output as a .bat file
Now edit the batch file to make it run every 60 seconds
:loop
<your curl commands exported from Fiddler>
timeout /t 60
goto loop
Now save the batch file and run it!
Upvotes: 3
Reputation: 439
I would use JMeter for these kind of tests, but to answer your question, here is sample script which I got from here
public static ToolsAction("Crawl Sequential URLs")
function doCrawl(){
var sBase: String;
var sInt: String;
sBase = FiddlerObject.prompt("Enter base URL with ## in place of the start integer", "http://www.example.com/img##.jpg");
sInt = FiddlerObject.prompt("Start At", "1");
var iFirst = int.Parse(sInt);
sInt = FiddlerObject.prompt("End At", "12");
var iLast = int.Parse(sInt);
for (var x=iFirst; x<=iLast; x++)
{
//Replace 's' with your HTTP Request. Note: \ is a special character in JScript
// If you want to represent a backslash in a string constant, double it like \\
var s = "GET " + sBase.Replace("##", x.ToString()) + " HTTP/1.0\r\n\r\n";
var b=false;
while(!b){
try{
FiddlerObject.utilIssueRequest(s);
b=true;
}
catch(e){
var iT = Environment.TickCount + 10000;
FiddlerObject.StatusText = "Waiting 10 sec because we have too many requests outstanding...";
while (iT > Environment.TickCount){ Application.DoEvents(); }
}
}
}
}
Upvotes: 3
Reputation: 1685
I believe you can do it, as you can write scripts in fiddler.
Anyway, I recommend you to use BURP for this purpose - you have built-in option to do it easily (repeater, for example).
See http://portswigger.net/burp/ and http://portswigger.net/burp/repeater.html (for repeater).
Upvotes: 0