I am using curl to download files from the internet and it is working fine. The problem is that I am trying to check if the file exists before downloading it. I was thinking that if the file doesn't exist, then I would receive a CURLcode with and error, but instead of that, I am always receiving CURLE_OK.
Is there a way to check if the file exists with curl? If not, which is the best way to do it in c++?
Thank you in advance.