avhttp icon indicating copy to clipboard operation
avhttp copied to clipboard

avhttp is concurrent http downloader

Results 11 avhttp issues
Sort by recently updated
recently updated
newest added

我在之前一个issue中提出了超时问题,回答的是multi_download接口中设置超时,我想知道http_stream如何正确设置。 // 以下面一个链接完全打开较慢为例,或者有的链接等待很长时间,而http_stream无法设置超时断开,我用异步定时器设置超时断开,但是却一直在下载中。这个async_open似乎在同步执行中,请教如何正确关闭这种完全打开很慢或者说卡死了的链接? std::string url = "https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.zip"; boost::asio::io_service ios; boost::asio::deadline_timer timer(ios); avhttp::http_stream h(ios); timer.expires_from_now(boost::posix_time::seconds(5)); timer.async_wait([&](const boost::system::error_code& ec) { std::cout

您好!报告一个boost升级后的问题: boost_1_69_0及其之前版本都没问题,boost_1_70_0版时,报如下错误: error C2039: “get_io_service”: 不是“boost::asio::basic_stream_socket”的成员 具体指向文件.\avhttp\include\avhttp\detail\socket_type.hpp的655行。 经过查看,boost库确实改了一些实现,从1.70开始废弃这个函数了,如果需要使用新的boost库,则需要更新本库了

使用同样的代理,用curl工具,正常;输出: $ /usr/local/bin/curl -x 127.0.0.1:53430 'https://www.google.co.jp/' Google(function(){window.google={kEI:'tA8xWIiHBIWA8QWXhZTQAw',kEXPI:'1351903,1352083,3700320,4029370,4029815,4031109,4032678,4036... 用 async_http_stream.cpp ,则停止在: $ ./async_http_stream https://www.google.com/

I notice this project is using Boost.Asio and it speaks HTTP. Beast is also a library that is built on Boost.Asio and offers implementations of HTTP, could this be helpful...

这个库能否跟libcurl一样获取下载进度百分比,下载速度,剩余时间? examples里面没有发现相关的例子

在 multi_download 中设置settings 的save_path字段不起作用,文件还是被存放到默认路径。经过查看源代码,发现 std::string multi_download::file_name() 函数有点小问题。下面是修改后的: std::string multi_download::file_name() const { // 如果文件名为空, 则生成默认文件名. if (m_file_name.empty()) { // 构造默认文件名. 如果url中的文件名为空, 那么就默认为index.html, 否则 // 使用url中指定的文件名, 除非settings指定了保存文件路径及文件名. m_file_name = fs::path(detail::utf8_ansi(m_final_url.path())).leaf().string(); if (m_file_name...

1、如果是post请求,在处理redirect的情况下,应该对返回的Location进行Get方式的访问,但是代码中还是POST继续请求下去,导致错误的请求。 2、get请求方式下,通过request_options设置的请求头信息,在redirect以后,会丢失,使用代码中默认设置的请求头来处理了,典型的就是自己设置的user_agent,在redirect请求的时候,user_agent发生了变化。 请求大大们处理,如果是使用方式不对,请大大们指点,感激感激!