Can anyone tell me why when web scraping some websites with WinHttpRequest5.1 API, this error is thrown and won't retreive any data from this site?
Two URLs that I tested and found did not work:
these are both return 200 OK status codes in the browser.
This is the error message that it throws:
Description: The operation has been canceled
Which correlates to this error in the WinHttpRequest5.1 MSDN docs:
The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed.
How do I keep the handle open? Why is the handle closing when I did not specify it to? Is this the website blocking me? Is there any way around this? I don't really understand what a "handle" is in this scenario..
Thank you for your replies.