support head and multipart downloading