Skip to content

Instantly share code, notes, and snippets.

@lanekatris
Created December 11, 2017 16:01
Show Gist options
  • Select an option

  • Save lanekatris/47aed366d36c84830a1ce5a9f5029bca to your computer and use it in GitHub Desktop.

Select an option

Save lanekatris/47aed366d36c84830a1ce5a9f5029bca to your computer and use it in GitHub Desktop.
while ($true) {
$result = curl http://localhost:3000
if ($result -eq $null) {
write-host "null!"
}
if ($result.StatusCode -eq 200) {
Write-Host "Success" . $result.StatusCode
} else {
Write-Warning "Failed curling, status: " . $result.StatusCode
}
Start-Sleep -Milliseconds 500
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment