Better HTTP response parsing