Skip to content

HEAD requests fail to https://dot.net/v1/dotnet-install.ps1 #387

@jonathanpeppers

Description

@jonathanpeppers

We noticed HEAD requests now give a 403:

> Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -Method HEAD
Invoke-WebRequest : The remote server returned an error: (403) Forbidden.
At line:1 char:1
+ Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -Method  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Our CI started failing, because we have some generic download code that does an initial HEAD request, for showing progress of downloads.

See: dotnet/android#8311

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions