Request HTTP partial content with range header
2012-05-02 22:03
323 查看
Request HTTP partial content with range header | Xinotes
Request HTTP partial content with range header
nogeek
Joined:
03/21/2010
Posts:
49
(Not rated)
June 01, 2010 14:34:12
Last update: June 01, 2010 14:34:12
Test with curl and default Apache doc.
C:\>curl --dump-header - http://localhost HTTP/1.1 200 OK
Date: Tue, 01 Jun 2010 14:24:44 GMT
Server: Apache/2.2.15 (Win32)
Last-Modified: Sat, 20 Nov 2004 19:16:26 GMT
ETag: "1000000023832-2c-3e95575ae9680"
Accept-Ranges: bytes
Content-Length: 44
Content-Type: text/html
<html><body><h1>It works!</h1></body></html>
C:\>curl -H Range:bytes=16-24 --dump-header - http://localhost HTTP/1.1 206 Partial Content
Date: Tue, 01 Jun 2010 14:27:19 GMT
Server: Apache/2.2.15 (Win32)
Last-Modified: Sat, 20 Nov 2004 19:16:26 GMT
ETag: "1000000023832-2c-3e95575ae9680"
Accept-Ranges: bytes
Content-Length: 9
Content-Range: bytes 16-24/44
Content-Type: text/html
It works!
C:\>curl -H Range:bytes=16- --dump-header - http://localhost HTTP/1.1 206 Partial Content
Date: Tue, 01 Jun 2010 14:27:28 GMT
Server: Apache/2.2.15 (Win32)
Last-Modified: Sat, 20 Nov 2004 19:16:26 GMT
ETag: "1000000023832-2c-3e95575ae9680"
Accept-Ranges: bytes
Content-Length: 28
Content-Range: bytes 16-43/44
Content-Type: text/html
It works!</h1></body></html>
C:\>
nogeek
Joined:
03/21/2010
Posts:
49
(Not rated)
June 01, 2010 14:34:12
Last update: June 01, 2010 14:34:12
Test with curl and default Apache doc.
C:\>curl --dump-header - http://localhost HTTP/1.1 200 OK
Date: Tue, 01 Jun 2010 14:24:44 GMT
Server: Apache/2.2.15 (Win32)
Last-Modified: Sat, 20 Nov 2004 19:16:26 GMT
ETag: "1000000023832-2c-3e95575ae9680"
Accept-Ranges: bytes
Content-Length: 44
Content-Type: text/html
<html><body><h1>It works!</h1></body></html>
C:\>curl -H Range:bytes=16-24 --dump-header - http://localhost HTTP/1.1 206 Partial Content
Date: Tue, 01 Jun 2010 14:27:19 GMT
Server: Apache/2.2.15 (Win32)
Last-Modified: Sat, 20 Nov 2004 19:16:26 GMT
ETag: "1000000023832-2c-3e95575ae9680"
Accept-Ranges: bytes
Content-Length: 9
Content-Range: bytes 16-24/44
Content-Type: text/html
It works!
C:\>curl -H Range:bytes=16- --dump-header - http://localhost HTTP/1.1 206 Partial Content
Date: Tue, 01 Jun 2010 14:27:28 GMT
Server: Apache/2.2.15 (Win32)
Last-Modified: Sat, 20 Nov 2004 19:16:26 GMT
ETag: "1000000023832-2c-3e95575ae9680"
Accept-Ranges: bytes
Content-Length: 28
Content-Range: bytes 16-43/44
Content-Type: text/html
It works!</h1></body></html>
C:\>
相关文章推荐
- Request HTTP partial content with range header
- 关于XMLHTTPRequest.getResponseHeader("Content-Type")的返回值
- myxmlHttpRequset.setRequestHeader("Content-Type","application/x-www-form-urlencoded
- 关于loadrunner使用web_add_header添加HTTP信息头(比如Content-Type,token等)和使用web_custom_request()提交json数据
- 关于loadrunner使用web_add_header添加HTTP信息头(比如Content-Type,token等)和使用web_custom_request()提交json数据
- web_add_auto_header("x-requested-with", "XMLHttpRequest "); 在LR中的作用
- HTTP请求标头 - HttpWorkerRequest.HeaderContentType
- The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the serv
- How to Send an HTTP Header With Every Request With Spring RestTemplate
- How to disable 'withcredentials' in HTTP header with node.js and Request package?
- urllib2-addheaders(在 HTTP Request 中加入特定的 Header,Content-Type用 REST 接口时,服务器会检查该值,用来确定 HTTP Body 中的内容)
- 【iOS开发-98】文件分段下载:@“HEAD“和[request setValue:range forHTTPHeaderField:@"Range"]
- HTTP Header里的Range和Content-Range参数
- securely implement request processing, filtering and content redirection with HTTP pipeline in ASP.NET
- HTTP Header里的Range和Content-Range参数
- There is not a header with name ServiceContext and namespace http://schemas.microsoft.com/sharepoint/servicecontext in the messa
- No mapping found for HTTP request with URI [/brand/findAll.do] in DispatcherServlet with name 'sprin
- No mapping found for HTTP request with URI [/chart/get] in DispatcherServlet with name 'SpringMVC‘
- springmvc No mapping found for HTTP request with URI in Dispatc
- No mapping found for HTTP request with URI [/Test/findbyid] in DispatcherServlet