有没有有效的方法来提取http请求的多部分范围响应?
我正在使用 WinHttp.lib 进行一些http请求,
同时使用 Range 标头获取数据,例如
“GET someURL\r\n Range: bytes=4096-8191,0-4095”,
在响应标头后收到响应数据,如下所示(根据 RFC2616):
==================================
--46228a661764c4210
内容类型:文本/纯文本
内容范围:字节 4096-8191/14065
...Rang#1 的内容数据
--46228a661764c4210
内容类型:text/plain
内容范围:字节 0-4095/14065
...Rang#2 的内容数据
--46228a661764c4210--
那么,当数据作为流接收时,是否有任何有效的方法来提取我确切期望的每个范围的内容数据。
I am doing some http request with WinHttp.lib,
while Get data with Range header, such as
"GET someURL\r\n Range: bytes=4096-8191,0-4095",
received the respone data after response header like this(according to RFC2616):
================================
--46228a661764c4210
Content-type: text/plain
Content-range: bytes 4096-8191/14065
...Content Data of Rang#1
--46228a661764c4210
Content-type: text/plain
Content-range: bytes 0-4095/14065
...Content Data of Rang#2
--46228a661764c4210--
Then ,is there any efficient way to extract the Content Data that i exactly expected of each range,while data's received as stream.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您尝试过 Fiddler 吗?
Have you tried Fiddler?