相关疑难解决方法(0)

Powershell确定永久移动(重定向)的资源的新URL

我在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

3
推荐指数
1
解决办法
2487
查看次数