Testing Responses to ‘GET’ Requests (The Easy Way)

NOTE: This post – drafted, composed, written, and published by me – originally appeared on https://blogs.technet.microsoft.com/johnbai and is potentially (c) Microsoft.

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:


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             : http://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).