public void Http() { WebHelper httpHelper = new WebHelper(); //httpHelper.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); model m = new model(); m.loginType = 2; m.passwordOrCode = "ED0D1411-B93A-4B7B-AABA-F5C2CC232399"; object requestObj = new { Age = 0591, Name = "xiujie", Ys = 运算符号.B, M = m, dt = DateTime.Now }; JsonRequest request = new JsonRequest(); request.Age = 0591; request.Name = "xiujie"; request.Ys = 运算符号.B; request.M = m; request.dt = DateTime.Now; var dic = DictionaryHelper.ObjToDictionary(null, null, null); JsonRequest j = new JsonRequest(); JsonRequest obj = DictionaryHelper.DictionaryToObj <JsonRequest>(dic, null, null); var r = httpHelper.DoGet("http://localhost:15892/home/json?name=123&age=456", request); }