Esempio n. 1
0
 public static string UploadUpdate(UploadScript form, string info)
 {
     if (CheckIp(form))
     {
         using (MultipartFormDataContent data = new MultipartFormDataContent
         {
             { new StringContent(info), "info" }
         })
             using (HttpClient web = new HttpClient())
                 return(web.PostAsync(storageServer + "/Script%20Browser/uploadUpdate.php?user="******"&pass="******"false");
 }
Esempio n. 2
0
 public static string UploadScript(UploadScript form, string info, string path)
 {
     if (CheckIp(form))
     {
         using (MultipartFormDataContent data = new MultipartFormDataContent
         {
             { new StringContent(info), "info" },
             { new StreamContent(File.Open(path, FileMode.Open)), "file", "script.zip" }
         })
             using (HttpClient web = new HttpClient())
                 return(web.PostAsync(storageServer + "/Script%20Browser/uploadScript.php?user="******"&pass="******"false");
 }