Added support for HttpWebRequests.