Last active
August 29, 2015 14:15
-
-
Save p5150j/6c40e097f78c3c561b38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$http.get('www.example.com/someapi/resource', { | |
headers: {'Range': "bytes=1073152-64313343-64313343"} | |
}); | |
// you will need to make sure your server is able to respond to your request in byte ranges | |
// example | |
// more info can be found here http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16 | |
// GET /BigBuckBunny_320x180.mp4 | |
// Connection: keep-alive | |
// Accept-Language: en-GB,en-US,en | |
// Host: localhost:8080 | |
// Range: bytes=1073152-64313343 | |
// Accept: */* | |
// If-Range: A023EF02BD589BC472A2D6774EAE3C58 | |
// User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 ... | |
// Referer: http://localhost:8080/BigBuckBunny_320x180.mp4 | |
// Accept-Encoding: identity | |
// Accept-Charset: ISO-8859-1,utf-8,* | |
// 206 Partial Content | |
// Content-Type: video/mp4 | |
// Connection: keep-alive | |
// Last-Modified: Wed,14 Dec 2015 15:50:59 GMT | |
// ETag: A023EF02BD589BC472A2D6774EAE3C58 | |
// Transfer-Encoding: | |
// Content-Length: 63240192 | |
// Accept-Ranges: bytes | |
// Server: Brisket/1.0.1 | |
// Date: Wed,14 Dec 2011 16:11:25 GMT | |
// Content-Range: bytes 1073152-64313343/64657027 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment