We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,397 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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.

2
Contributors
2
Replies
19 Hours
Discussion Span
2 Years Ago
Last Updated
3
Views
Question
Answered
JeremyJ
Newbie Poster
4 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

daviddoria
Posting Virtuoso
1,996 posts since Feb 2008
Reputation Points: 437
Solved Threads: 205
Skill Endorsements: 8

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

JeremyJ
Newbie Poster
4 posts since Nov 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 2 Years Ago by daviddoria

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0597 seconds using 2.68MB