I need simulate visit on site. Now i'm using two ways, one of them is http get requests.
I use await httpClient.GetAsync() to make GET request to site with proxy, and even i got OK status code, views counter not increased. Sometimes i get 403 forbidden response.
Maybe i need fill headers of this request?
Second way that i've used is WebClient.Navigate() but i cant use it with proxy, and its make only 1 visit.
How i can upgrade method with HttpClient? And maybe for this way exists different ways to increase view counter?
CodePudding user response:
This answer will be helpful to you. I recommend HttpWebRequest for its simple proxy option. Note that it's better to apply the requests using a thread instead of simple loop.
