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.

You can always do a system() 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

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 system() 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

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.