开发者

Grab page in chunks

开发者 https://www.devze.com 2023-01-14 18:45 出处:网络
I am developing an application which needs to grab a web page and then parse it. I need to know is there any way to grab开发者_高级运维 the page in chunks. I mean page could be divided and downloaded

I am developing an application which needs to grab a web page and then parse it. I need to know is there any way to grab开发者_高级运维 the page in chunks. I mean page could be divided and downloaded in parallel chunks and at the end I could get single a page. So that time can be saved.


HTTP 1.1 supports the Range header that allows you to download a resource in chunks. This is probably what you want. The HttpWebRequest object offers the AddRange method that allows you to do this.

0

精彩评论

暂无评论...
验证码 换一张
取 消