Skip to content

Instantly share code, notes, and snippets.

@benlieb
Created April 15, 2013 08:01
Show Gist options
  • Save benlieb/5386489 to your computer and use it in GitHub Desktop.
Save benlieb/5386489 to your computer and use it in GitHub Desktop.
THIS SERVERS HEADER DOESN'T WORK WITH urlConnection.getContentLength()
$ curl --head "http://www.server0.com/files-for-droid-app/vol-1-beginning-tango/02Posture_and_Walk.m4v"
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=A17762C6B65FD8D35840110F8628DE4B.V5; Path=/; HttpOnly
X-ServedBy: web114
Set-Cookie: SS_MID=7315b0cb-054c-4dd8-a013-c7163793becehfjcndg8; Domain=.tangoberretin.com; Expires=Thu, 13-Apr-2023 07:57:07 GMT; Path=/
Pragma: cache
Cache-Control: private,max-age=86400
Last-Modified: Thu, 21 Feb 2013 06:28:24 GMT
Content-Disposition: attachment; filename="02Posture_and_Walk.m4v";
Accept-Ranges: bytes
Content-Range: bytes 0-6716578/6716579
Content-Type: application/octet-stream;charset=UTF-8
Content-Length: 6716579
Date: Mon, 15 Apr 2013 07:57:07 GMT
Server: SSWS
Set-Cookie: WebPersCookie=Gn5lN9r2EIK+3eKz0tv/bEs4IJpcBzYg22jKvv/JD1eAA1N3D0pevaz3zuXOD3uTT950AQdstGRJgdE=; path=/
THIS SERVERS HEADER WORKS WITH urlConnection.getContentLength()
$ curl --head "http://server1.net/wp-content/video/02Posture_and_Walk.m4v"
HTTP/1.1 200 OK
Date: Mon, 15 Apr 2013 07:57:42 GMT
Server: Apache
Last-Modified: Sun, 14 Apr 2013 23:49:00 GMT
Accept-Ranges: bytes
Content-Length: 502365
Content-Type: text/plain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment