URLDownloadToFile fails with 0x800c0008 (INET_E_DOWNLOAD_FAILURE) depending on length of URL [duplicate]
问题 This question already has answers here : What is the maximum URL length you can pass to the Wininet function, HttpOpenRequest? (3 answers) Closed 2 years ago . I'm aware there is a similar question here. However my symptoms differ. There seems to be some kind of URL length restriction in place that I couldn't find documented. The limit seens to be 2084 (sic! not 2048!) characters in the URL. The easiest repro is just a console application with this code: #include "stdafx.h" #include "urlmon.h