Esempio n. 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;
 }
Esempio n. 2
0
 private string Http_Get(string url)
 {
     HttpHelper http = new HttpHelper();
     http.Url = url;
     http.Do();
     if (http.StatusCode != HttpStatusCode.OK)
     {
         this.ErrMsg = StatusCodeMsg.GetMsg(http.StatusCode);
         this.ErrMsg = http.ErrMsg;
         return null;
     }
     return http.Html;
 }