get expectedContentLength from Content-Length header. Content-Encoding:gzip always return size -1