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:
http://www.artodia.com/
https://www.phpbb.com/ideas/
these are both return 200 OK status codes in the browser.
This is the error message that it throws:
0x80072EF1 -
Source: WinHttp.WinHttpRequest
Description: The operation has been canceled
Which correlates to this error in the WinHttpRequest5.1 MSDN docs:
https://docs.microsoft.com/en-us/windows/desktop/winhttp/error-messagesERROR_WINHTTP_OPERATION_CANCELLED
12017
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.