首页 > TAG信息列表 > myStreamReader

接口get方法body赋值

try{ ///URL接口地址 HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL); request.Proxy = null; request.KeepAlive = false; request.Method = "GET"; request.ContentType = "application/json; charset=UTF-8"; req

asp.net 获取第三方api的工具类

//获取第三方api的工具类 public class HttpUtils { public static string Get(string Url) { //System.GC.Collect(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url); request.Proxy = null;

C# Get 带body

try { //System.GC.Collect(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(URL); request.Proxy = null; request.KeepAlive = false; request.