Skip to content

Ignore invalid response header in HttpClient request #29927

@EricXiexm

Description

@EricXiexm

In .net standard 2.0
When i use System.Net.Http.HttpClient to request url data,throw an exception like:
图片1

The url run in web browser work well,but its response headers like:
图片2

The reponse headers is not standardized,in .net core it will throw an exception,but in framework4.5 work well.

Any solution for this in .net core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Net.HttpenhancementProduct code improvement that does NOT require public API changes/additionstenet-compatibilityIncompatibility with previous versions or .NET Framework

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions