use getContentLengthLong instead to get content length
set connection timeout