Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

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

$
0
0

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


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>