How to specify range >2GB for HttpWebRequest in .NET 3.5

前端 未结 4 911
北荒
北荒 2021-01-14 16:23

I\'m building this class to download files in parts/sections/segments. In .NET 4.0, I can use this code to specify the range to download from

long startPos =         


        
4条回答
  •  终归单人心
    2021-01-14 16:50

    If I understand you correctly, you do not have enough int and long. But operator overloading only int?

    Use headers.

    httpWebRequest.Headers.Add("Range", "bytes=500-999");
    

提交回复
热议问题