get contentLength and acceptRange outside parseUrl