Use jdk7 getContentLengthLong() instead of jdk6 getContentLength()