I want to create a cURL request in some C++ code which will get me the length of a file in a server without downloading the file. For that, I use some cURL options to tell I
Have you tried with CURLINFO_CONTENT_LENGTH_DOWNLOAD instead?