Get.URLStatusCode
2.1.4.39
PowerShell Module that will return the HTTP Status Code of any provided URL without the need for a Try/Catch statement.
Example 1 - Return HTTP Status Code of given url:
Get-URLStatusCode -Url https://www.google.com/
Example 2 - Switch statement using HTTP Status Code:
Switch (Get-URLStatusCode -Url https://www.google.com/) {
200 {
Write-Output "
Example 1 - Return HTTP Status Code of given url:
Get-URLStatusCode -Url https://www.google.com/
Example 2 - Switch statement using HTTP Status Code:
Switch (Get-URLStatusCode -Url https://www.google.com/) {
200 {
Write-Output "
PowerShell Module that will return the HTTP Status Code of any provided URL without the need for a Try/Catch statement.
Example 1 - Return HTTP Status Code of given url:
Get-URLStatusCode -Url https://www.google.com/
Example 2 - Switch statement using HTTP Status Code:
Switch (Get-URLStatusCode -Url https://www.google.com/) {
200 {
Write-Output "Website is up and reachable!"
}
Default {
Write-Output "Website is not reachable or down!"
}
}
Show more
Example 1 - Return HTTP Status Code of given url:
Get-URLStatusCode -Url https://www.google.com/
Example 2 - Switch statement using HTTP Status Code:
Switch (Get-URLStatusCode -Url https://www.google.com/) {
200 {
Write-Output "Website is up and reachable!"
}
Default {
Write-Output "Website is not reachable or down!"
}
}
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
Copyright © 2020 RePass Cloud Pty Ltd
Package Details
Author(s)
- Danijel-James Wynyard
Tags
http url uri statuscode status 200 code https
Functions
Dependencies
This module has no dependencies.
Release Notes
Initial release to PSModule.
FileList
- Get.URLStatusCode.nuspec
- CHANGELOG.md
- Get.URLStatusCode.Format.ps1xml
- Get.URLStatusCode.psd1
- Get.URLStatusCode.psm1
- LICENSE
- README.md
- en-US\about_Get.URLStatusCode.help.txt
- Public\Get-UrlStatusCode.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
2.1.4.39 (current version) | 296 | 8/2/2020 |
2.0.2.30 | 21 | 8/2/2020 |
2.0.2.29 | 50 | 7/27/2020 |
2.0.2.24 | 21 | 7/27/2020 |