-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProgram.cs
32 lines (26 loc) · 995 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
namespace CSharp_ProxyList.to_API_Example
{
internal class Program
{
static void Main(string[] args)
{
//API KEY FROM https://proxylist.to/dashboard/
string API_KEY = "PROXY-xxxxxxxx-LIST-xxxxxxxx-TO";
WebClient webClient = new WebClient();
//HTTP PROXY LIST
string http = webClient.DownloadString("https://api.proxylist.to/http?key=" + API_KEY);
//SOCKS4 PROXY LIST
string socks4 = webClient.DownloadString("https://api.proxylist.to/http?key=" + API_KEY);
//SOCKS5 PROXY LIST
string socks5 = webClient.DownloadString("https://api.proxylist.to/http?key=" + API_KEY);
//FOR AN ARRAY, SPLIT BY NEWLINE
string[] httpArray = http.Split(new string[] { "\n" }, StringSplitOptions.None);
}
}
}