示例#1
0
 public void SendGETRequest(string account, string password, string URL)
 {
     this.BasicAuthAccount  = account;
     this.BasicAuthPassword = password;
     this.URL     = URL;
     this.HasData = false;
     this.Method  = HttpRequestOption.GET;
     SendRequest();
 }
示例#2
0
 public void SendPATCHRequest(string account, string password, string URL, string JSONString)
 {
     this.BasicAuthAccount  = account;
     this.BasicAuthPassword = password;
     this.URL           = URL;
     this.JsonifyString = JSONString;
     this.HasData       = true;
     this.Method        = HttpRequestOption.PATCH;
     SendRequest();
 }
示例#3
0
 //Jammy Add 20160315
 public void SendPOST_File_Request(string account, string password, string URL, string FilePath)
 {
     this.BasicAuthAccount  = account;
     this.BasicAuthPassword = password;
     this.URL            = URL;
     this.FilePathString = FilePath;
     this.HasData        = true;
     this.Method         = HttpRequestOption.POST;
     UpdateFWRequest();
 }