Created
February 17, 2013 12:27
-
-
Save vadimii/4971299 to your computer and use it in GitHub Desktop.
Fetch URL data with PowerShell
This file contains hidden or 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
| param($url) | |
| $webclient = new-object Net.WebClient | |
| $webclient.Credentials = new-object Net.NetworkCredential("admin", "pass") | |
| $webpage = $webclient.DownloadString($url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment