示例#1
0
 private string Http_POST(string url, MsMultiPartFormData form)
 {
     HttpHelper http = new HttpHelper();
     http.Url = url;
     http.Method = Method.POST;
     http.ContentType = "multipart/form-data; boundary=" + form.Boundary;
     http.PostDataByte = form.GetFormData();
     http.Do();
     return http.Html;
 }
示例#2
0
 private string Http_Get(string url)
 {
     HttpHelper http = new HttpHelper();
     http.Url = url;
     http.Do();
     if (http.StatusCode != HttpStatusCode.OK)
     {
         ResponseResult = new ResponseResult();
         ResponseResult.ResponseDetails = StatusCodeMsg.GetMsg(http.StatusCode);
         ResponseResult.ResponseDetails = http.ErrMsg;
         return null;
     }
     return http.Html;
 }