Last active
September 30, 2016 15:50
-
-
Save alkalinecoffee/9081031 to your computer and use it in GitHub Desktop.
Simple Web Requests in PowerShell
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
# Ignore any SSL certificate errors | |
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} | |
(New-Object System.Net.WebClient).DownloadFile("http://example.com/myfile.txt", "C:\myfile.txt") |
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
# Ignore any SSL certificate errors | |
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} | |
(New-Object System.Net.WebClient).DownloadString("http://example.com/get_test_response") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment