Answer the question
In order to leave comments, you need to log in
VK api only sends 2 messages. The application then stumbles. During - did the operation time out?
for(int i = 0;i<count;i++)
{
//message = ": Hello,flood! " + i.ToString() + " Times! Test!";
int rnd = random.Next(count);
if (rnd % 2 == 0)
message = "flood: " + rnd.ToString();
else
message = "test: " + rnd.ToString();
uri = str + message + s_str;
HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(uri);
var t = httpWebRequest.GetResponse();
var y = t.GetResponseStream();
Thread.Sleep(2000);
}
Answer the question
In order to leave comments, you need to log in
A cheat sheet about who sends what to where and how to do it correctly so that it does not fail:
https://docs.microsoft.com/en-us/dotnet/api/system...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question