Skip to content

Instantly share code, notes, and snippets.

@ericlaw1979
Created March 31, 2016 20:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericlaw1979/97e040f2e0b589ca8c29affff5b11c9b to your computer and use it in GitHub Desktop.
Save ericlaw1979/97e040f2e0b589ca8c29affff5b11c9b to your computer and use it in GitHub Desktop.
Given a simple list of URLs on the clipboard, make a request for each one
public static ToolsAction("Request URLs from Clipboard")
function doClipboard()
{
var s: String = Clipboard.GetText();
var arr: String[] = s.Split(['\n']);
for (var i: int=0; i<arr.Length; i++)
{
var sUri = arr[i].Trim();
if (!sUri.ToLower().StartsWith("http")) continue;
try {
FiddlerApplication.oProxy.SendRequest("GET " + sUri + " HTTP/1.1\r\n\r\n",null);
}
catch (e)
{
FiddlerApplication.Log.LogString("Failed Request: " + e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment