Skip to content

Instantly share code, notes, and snippets.

@chrisbrownie
Created November 15, 2016 01:22
Show Gist options
  • Save chrisbrownie/3b2a9be4f5dc8f492ee5db2aad382d25 to your computer and use it in GitHub Desktop.
Save chrisbrownie/3b2a9be4f5dc8f492ee5db2aad382d25 to your computer and use it in GitHub Desktop.
# Because we all know loading up an already overwhelmed site helps #Census
$url = "https://ebgames.com.au/featured/nintendo-classic-mini-nes"
$passes = 0
$fails = 0
while ($true) {
try {
iwr $url -ErrorAction "STOP" -Verbose:$false | Out-Null
$passes++
} catch {
$lastError = $_
$fails++
}
Clear-Host
"Passes: $passes"
"Fails: $fails"
"Last error:`n$lastError"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment