如何编写一个MultiPart下载C ++程序 [英] How to write a MultiPart download C++ program

查看:145
本文介绍了如何编写一个MultiPart下载C ++程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要编写一个C ++程序来使用HTTP下载文件。为了学习,我想在我的程序中实现multipart下载DownThemAll的方式!是的。不可能在Linux套接字上做lseek。我想这将是一些HTTP选项,我们需要指定,告诉在哪里开始下载文件。因此,我们可以有多个连接打开到服务器。这样对吗?

I want to write a C++ program to download files with HTTP. For the sake of learning I would like to implement multipart downloading in my program the way DownThemAll! does. It is not possible to do lseek on a linux socket. I suppose it would be some HTTP option that we would need to specify, telling where to start downloading the file from. Thus we could have multiple connections open to the server. Is it right? What are the HTTP headers for doing so?

推荐答案

我建议您查看 14.35.1 Byte Ranges

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35

这篇关于如何编写一个MultiPart下载C ++程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆