How to know if host support Range headers?

筅森魡賤 提交于 2020-01-01 17:27:15

问题


When i tried curl -r 0-100 to get a part of document i always got a full html page.Is there a simple way to know if host support range headers or don't , so i could use curl range option.


回答1:


A server signals its support for ranges in the response headers. Look for "Accept-Ranges: bytes" in the response when you send a HEAD or a GET to the site.



来源:https://stackoverflow.com/questions/12332858/how-to-know-if-host-support-range-headers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!