Adding a cut of @mausch's HttpWebAdapters project, extracted from the SolrNet code: https://github.com/mausch/SolrNet/commit/32e0ee8da4fc86521b9b0375ac4775de2c5436f1