h5活体检测接口返回no found video
Ta的回复 :MultipartFormDataContent content = new MultipartFormDataContent(); content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/x-www-form-urlencoded"); HttpContent httpContent = new StringContent("video_base64=" + HttpUtility.UrlEncode(video)+ "&session_id"+jo1["result"]["session_id"].ToString()); httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/x-www-form-urlencoded") { CharSet = "utf-8" }; HttpResponseMessage response = client.PostAsync(authHost, httpContent).Result; String result = response.Content.ReadAsStringAsync().Result; 出现这种问题一般是传输的video的格式问题,上面是我C#写的代码,可以参考下,特别是HttpContent httpContent = new StringContent("video_base64=" + HttpUtility.UrlEncode(video)+ "&session_id"+jo1["result"]["session_id"].ToString()); 这部分内容,因为格式是application/x-www-form-urlencoded