public void GetTest() { Assert.IsNull(Httpdoer.Get("www.baidu.com", new { id = 1 }).Send().Exception); Assert.IsNull(Httpdoer.Get("www.baidu.com/s").Send().Exception); var req = Httpdoer.Get("www.baidu.com", new { id = 1 }, new { Authorization = "xxxx" }); Assert.AreEqual("http://www.baidu.com?id=1", req.ToString("q")); Assert.AreEqual("xxxx", req.Headers["Authorization"]); Assert.IsNull(req.Send().Exception); }