Violet Giraffe
Violet Giraffe

Reputation: 33589

What C++ libraries can I use to download HTTP web-page, other than libcurl?

I would also like to have an opportunity to add/modify HTTP GET headers, but basically I just need to download a page with given URL.

P. S. The only reason I'm searching for an alternative to libcurl is it doesn't give me the kind of download speeds I need.

Upvotes: 2

Views: 3772

Answers (3)

mevatron
mevatron

Reputation: 14011

Poco C++ has a HTTPClient class that is fairly easy to use. Here is their Networking tutorial. Poco C++ is also cross platform.

Here are some boost like recommendations from SO.

EDIT : If you haven't looked at Qt, they have a QNetworkRequest class. Seems a bit lower level than the Poco client, but might suit your needs. Here is an example using it.

Upvotes: 5

Matteo Italia
Matteo Italia

Reputation: 126827

To add to the other answers, if you target only Windows you can use the the urlmon functions (included in Windows), like URLDownloadToFile or URLOpenBlockingStream.

Upvotes: 2

Craig H
Craig H

Reputation: 7989

libwww looks like it might fit what you are looking for.

Upvotes: 1

Related Questions