1
Can I make a request via Httpclient every 1 second?
The server I send requests blocks the request if it is one behind the other with an answer: "Requestblocked"
What I wanted was this: I had two requests, however he would make the first request and return its value, 1 second later he would make the second request and so on, have to do something like this?
Code
using (var client = new HttpClient())
{
var result = await client.GetAsync("http://localhost/api/request.php");
return result.StatusCode.ToString();
}
What is your young project doing, windows Forms ? please give more details. Also put the code you already have ready. The question as it stands will certainly be closed because it is too broad, or not clear enough. Enjoy the tour of the site: https://answall.com/tour
– Rovann Linhalis
Hi, I use winform,
– matheus Lopes