Download Web Page Content

Probably the easiest way of reading raw Web page content is using the Web client object. This will read the Web content of http://blogs.msdn.com/b/powershell/, the PowerShell team blog:

$url = 'http://blogs.msdn.com/b/powershell/'
$wc = New-Object System.Net.WebClient
$wc.DownloadString($url)

Twitter This Tip! ReTweet this Tip!


Posted Oct 05 2010, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.