| | |
| | | HttpWebRequest request = (System.Net.HttpWebRequest)WebRequest.Create(url); |
| | | request.Method = "POST"; |
| | | // 内容类型 |
| | | request.ContentType = "application/json;charset=utf-8"; |
| | | request.ContentType = "application/json"; |
| | | //request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.44"; |
| | | //request.Headers.Add("hexin-v", "A7V-DydvPAbIKFi6ykYGWU5hxDt2MmlEM-ZNmDfacSx7Dteh_4J5FMM2XWnE"); |
| | | var payload = System.Text.Encoding.UTF8.GetBytes(content); |
| | | request.ContentLength = payload.Length; |
| | | Stream writer = request.GetRequestStream(); |
| | |
| | | string Result = SendRequest(GetSearchUrl, Content, Encoding.UTF8); |
| | | //JavaMsgData javaMsgData = JsonHelper.ToObject<JavaMsgData>(Result); |
| | | return (JObject)JsonConvert.DeserializeObject(Result); |
| | | |
| | | } |
| | | |
| | | //public object GetWenCaiAnswerList(string SearchInfo, int PageSize,int PageNo) |
| | | //{ |
| | | // string URL = "http://www.iwencai.com/unifiedwap/unified-wap/v2/result/get-robot-data"; |
| | | // WenCaiListPara wenCaiListPara = new WenCaiListPara(); |
| | | // wenCaiListPara.question = SearchInfo; |
| | | // wenCaiListPara.perpage = PageSize.ToString(); |
| | | // wenCaiListPara.page = PageNo.ToString(); |
| | | // string Content = JsonHelper.ToJson(wenCaiListPara); |
| | | // string GetSearchUrl = URL;//+"?question=连续5日成交额大于5亿且股东人数&perpage=1000&page=1&secondary_intent=&log_info={'input_type':'click'}&source=Ths_iwencai_Xuangu&version=2.0"; |
| | | // string Result = SendRequest(GetSearchUrl, Content, Encoding.UTF8); |
| | | // return (JObject)JsonConvert.DeserializeObject(Result); |
| | | //} |
| | | |
| | | //public object GetChinaStockList(string SearchInfo, int ReportType) |
| | | //{ |