Hello, this is the problem

I need to parse the proxy from the page, and then pass them to the List.

public static List<string> ProxyList = new List<string>(); 

enter image description here

But I have such a mistake.

The proxy parsing code itself:

  string URLProxy = client.DownloadString("http://awmproxy.com/freeproxy_2356428077.txt?"); 

Can you please tell me how to implement it normally? Thank you in advance.

    1 answer 1

    It is necessary to split the data into lines ( Split method) and add them to the list ( AddRange method):

     ProxyList.AddRange(URLProxy.Split()); 
    • Thank you very much :) Did the same thing, only Split did not add. ) - user199587