954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Downloading URL with C++ (Windows)

Hi,
I need to download URL's to a file using C++ code.

Does anyone know of a library, compatible with Windows, that will do this?

I know about CURL, but after spending days trying to configure LibCurl using Cygwin I'm ready to give up. A friend has been able to use libcurl on Linux successfully, but not with Windows. The installation docs are cryptic at best. I realize the cool thing to do would be to just buy a Red Hat Linux box or something like that, but I'm not there yet.

Can anyone help? Are there other libraries out there that will work? I have a project due soon, and really need to get this going.

JeremyJ
Newbie Poster
4 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

You can always do a [icode]system()[/code] call to make c++ do it the way you would do it from the command line. In linux, I would use wget:

system("wget yourURL");


I'm not sure what you would use in Windows.

David

daviddoria
Posting Virtuoso
1,996 posts since Feb 2008
Reputation Points: 437
Solved Threads: 204
 

That's a really good idea... The command line curl works, just not the linking part.
I'll try it out. Thanks David.

You can always do a [icode]system()[/code] call to make c++ do it the way you would do it from the command line. In linux, I would use wget:

system("wget yourURL");

I'm not sure what you would use in Windows.

David

JeremyJ
Newbie Poster
4 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: