Handle different transfer options. Handle cases where connection close defines the length. Handle Content-Length header correctly.