站长苏飞 发表于 2017-12-8 14:14 没做过,具体是什么问题
HttpHelper http = new HttpHelper(); HttpItem item = new HttpItem(); item.URL = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token=" + token + "&type=image"; item.Accept = "Content-Disposition: form-data; name=media;filename=xp1.jpg"; item.PostDataType = CsharpHttpHelper.Enum.PostDataType.FilePath; item.Postdata = Server.MapPath("../upload/xp1.jpg"); item.Method = "POST"; HttpResult re = http.GetHtml(item);