你的位置:首页 > 软件开发 > ASP.net > 接口 Post

接口 Post

发布时间:2016-05-04 15:00:13
public static StringBuilder HttpPost(string Url, byte[] Postdata, string i) { StringBuilder content = new StringBuilder(); try ...
接口 Post接口 Post
 public static StringBuilder HttpPost(get='_blank'>string Url, byte[] Postdata, string i)    {      StringBuilder content = new StringBuilder();      try      {        WebClient wc = new WebClient();        wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");        byte[] bycontent = wc.UploadData(Url, "POST", Postdata);        string strcontent = System.Text.Encoding.UTF8.GetString(bycontent);        //strcontent=strcontent.Replace(""", "“");        content.Append(strcontent);      }      catch (Exception ex)      {        throw new ServiceCustomException("HTTP请求失败!", ex);      }      return content;    }

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:接口 Post

关键词:post

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。