Skip to content

Instantly share code, notes, and snippets.

@breezhang
Created February 18, 2012 16:30
Show Gist options
  • Save breezhang/1860067 to your computer and use it in GitHub Desktop.
Save breezhang/1860067 to your computer and use it in GitHub Desktop.
You can get Http header
$url="full name much better eg. http://www.google.com"
#$xhttp= New-Object -ComObject msxml2.xmlhttp
#$xhttp.open("get",$url,$false)
#$xhttp.send()
#$xhttp.responseText
#$xhttp.status
#$xhttp.getAllResponseHeaders()
#alse you can net.webclient
#$req =[net.httpwebrequest]::Create($url)
new-object net.webclient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment