我在Linux上使用AppImage使用Powershell Core v6-beta.5。有没有办法找出301重定向的“新”位置?
Invoke-WebRequest -Method HEAD http://SomethingThatThrows301.com/ -MaximumRedirection 0引发错误(Response status code does not indicate success: 301 (Moved Permanently))。
虽然错误确实提到此举是301,但我仍然希望有一个适当的对象告诉我,以及新地址。
有办法吗?
powershell http-status-code-301 url-redirection powershell-v6.0