Created
March 31, 2016 20:21
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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