c#post访问URL接口 返回JSON数据,来个大神给小弟提示下。
1个回答
展开全部
string postUrl = "
HttpWebRequest http;
HttpWebResponse response;
http =WebRequest.Create(postUrl) as HttpWebRequest;
using (response = (HttpWebResponse)http.GetResponse())
{
using (StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.Default))
{
string josn=reader.ReadToEnd();
http.Abort();
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询