Hello, actually the essence of the matter is as follows - there is a method that reads the friends of the user in VKontakte. I put in the array of strings id of people to whom I need to go and read the list, but the program reads the list of friends only for the first user, and the rest does not upload, why? I do this:
public string [] FRIENDS_SEARCH() { List<string> tmp = new List<string>(); string[] logins = File.ReadAllText("D:/ГРУППЫ/БАЗА ДАННЫХ/Город/БД.txt").Split(' '); for (int o = 0; o < logins.Length; o++) { string lgn = logins[o]; var request = new HttpRequest(); request.UserAgent = HttpHelper.ChromeUserAgent(); request.Cookies = cook; request.AddParam("act", "filter_friends"); request.AddParam("age_from", "0"); request.AddParam("age_to", "0"); request.AddParam("al", "1"); request.AddParam("city", "374"); request.AddParam("sex", "0"); request.AddParam("uid", lgn); HttpResponse response = request.Post("https://vk.com/friends"); string[] t = response.ToString().Split('"'); for (int i = 1; i < t.Length; i++) if (t[i].Length > 5) tmp.Add("id" + t[i]); } return tmp.ToArray(); }
xNet library is connected
response.ToString().Split('"')
coderesponse.ToString().Split('"')
seems suspicious. - VladD