D
D
D0ct0r_Murder2018-03-13 05:47:59
In contact with
D0ct0r_Murder, 2018-03-13 05:47:59

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);
            }

Without var t = httpWebRequest.GetResponse(); he didn't send a request at all. Although I thought WebRequest.Create was already sending it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Yudakov, 2018-03-13
@AlexanderYudakov

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 question

Ask a Question

731 491 924 answers to any question