Can I possibly download .exe file from my server with winAPI? like www.google.com/test.exe, as I got exe in my webserver what I want to download.

You can use the WinAPI to create a socket connection to the server and send headers to apache, requesting the file.

Use Winsocket2 for this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.