A
A
armadillo-cld2020-06-11 19:53:34
C++ / C#
armadillo-cld, 2020-06-11 19:53:34

Unable to download file from website. What to do?

Hello.
I have a DLL project, I need to download a file from a website. It looks like this: site.com/file/123.exe
There is this code:

#include <urlmon.h>
#pragma comment(lib, "urlmon")

URLDownloadToFileA(NULL, "site.com/file/123.exe", "123.exe", 0, 0);

But when I run the debugger and load the dll into the process, not only is the file not downloaded, but the program does not send any requests either. Help what to do?

Site with HTTP protocol
Tried: add http://, remove.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question