Skip to content

HttpClient sending fragment portion of uri on request #27437

Closed
dotnet/corefx
#32574
@SteveL-MSFT

Description

@SteveL-MSFT

The code here was changed in dotnet/corefx#27360 to address a redirect issue with fragments. However, in the non-redirect case, the fragment portion of the URI is not sent on the request per section 9.5 of RFC 7231. Although many http sites ignore the fragment and return the document, some will instead return a 404.

This is causing a regression in the PowerShell webcmdlet compared to Windows PowerShell 5.1 (.NET Framework 4.x). PowerShell/PowerShell#7796

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Net.Httpbughelp wanted[up-for-grabs] Good issue for external contributorstenet-compatibilityIncompatibility with previous versions or .NET Framework

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions