AM-101 : Fix for Java 6 (URLConnection.getContentLengthLong() is java 7 only)