Apache HttpClient get add a byte range header?

后端 未结 1 1916
独厮守ぢ
独厮守ぢ 2021-02-14 14:20

Does anyone know of how to request byte ranges along with an HTTP request? I am looking to facilitate the resuming of downloads in our application by requesting a byte range of

相关标签:
1条回答
  • 2021-02-14 15:05

    I was able to get this working by adding the following line:

    httpGet.addHeader("Range", "bytes=0-0");
    
    0 讨论(0)
提交回复
热议问题