麻烦您再看下,不知这样写对不对,这样写 仍然无效
[C#] 纯文本查看 复制代码 HttpHelper Helper = new HttpHelper();
string[] Encodings = KillTool.ReadFile("编码.txt").Split('\n');
foreach (string ee in Encodings)
{
HttpItem Item = new HttpItem
{
URL = "http://appintf.youthlighting.cn:9878/dx-interface-app/v1/sys/version",
ContentType = "application/json;charset=UTF-8",
UserAgent="okhttp/3.2.0",
Method="POST",
// ResultType = ResultType.Byte,
Postdata="{\"os\":\"4.4.4\",\"unique_code\":\"864595029439340\",\"secr\":\"d3bbac2be8c3ad95297a3d1dda5ae3bb\",\"unique_type\":\"IMEI\",\"uuid\":\"00ce46de-f56d-4c21-93d1-09a6570b440f\",\"loginid\":\"18352513533\",\"phone_brand\":\"MI 3Xiaomi\",\"app_os\":\"116\",\"password\":\"53efa85c13954b205dae3334b65b81fb\"}",
Encoding = Encoding.GetEncoding(ee.Replace("\r", ""))
};
HttpResult Result = Helper.GetHtml(Item);
KillTool.WriteText("Result", Result.Html);
} |