Testing Responses to 'GET' Requests (The Easy Way)

Often times, it may become necessary to look at the response received from a 'GET' request to a web server. We can do a little .NET magic to perform this.

Below is an example tested my favorite TV station in Sweden:

[net.Webrequest]::Create("https://www.svt.se").GetResponse()

IsMutuallyAuthenticated : False
Cookies : {}
Headers : {X-UA-Compatible, X-Varnish, Connection, Content-Length...}
SupportsHeaders : True
ContentLength : 50827
ContentEncoding :
ContentType : text/html;charset=UTF-8
CharacterSet : UTF-8
Server : Apache
LastModified : 6/22/2014 8:21:33 PM
StatusCode : OK
StatusDescription : OK
ProtocolVersion : 1.1
ResponseUri : https://www.svt.se/
Method : GET
IsFromCache : False

You can use the command against any URI you wish to test/verify is up and responsive (which is handy for proving/disproving network issues).