问题描述
我还想有机会添加/修改HTTP GET标头,但基本上我只需要下载一个包含指定网址的网页。
P。我唯一的原因,我寻找一个替代 libcurl 它不给我那种下载速度我需要。
类。 是他们的网络教程。 Poco C ++也是跨平台。
,他们有类。似乎比Poco客户端低一点,但可能适合您的需求。 是使用它的示例。
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.
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.
这篇关于什么C ++库可以用来下载HTTP网页,而不是libcurl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!