Wednesday, February 10, 2016

Read or Send an eTag header with a HTTP web request


This will add a eTag value to the header

string sEtag = "11234244";
System.Net.HttpWebRequest req1 = (HttpWebRequest)WebRequest.Create("https://mysite.com");
req1.Headers.Add("ETag", (new System.Net.Http.Headers.EntityTagHeaderValue("\"" + sEtag + "\"")).Tag);


And we can read it back easily from the response object (resp is WebResponse)

sEtag = resp.Headers.Get("ETag");

Turn on Windows 11 Fast Boot

If windows starting is slow, to enable windows 11 fast startup/boot,  Press Windows + R, type powercfg.cpl, and hit Enter.  This will direct...