Powershell:“远程服务器返回错误:(404)Not Found

时间:2016-05-27 09:11:11

标签: powershell

我正在使用简单的url连接。 telnet命令适用于URL,因此url是正确的,但它仍然提供此异常

<div id="centerme">
  <ul class="firstlist">
    <a class="alist" href="http://www.coopertimewell.com">
      <li class="listl" id="image">
        <img id="headlogo" src="images/logotestme.png" />
      </li>
    </a>
  </ul>
</div>
<ul class="secondlist">
  <a class="alist" href="#">
    <li class="listli" id="home"><strong>HOME</li></a>
<a class = "alist" href = "http://www.coopertimewell.com/about"><li class = "listli" id = "about">ABOUT ME</li></a>
<a class = "alist" href = "http://www.coopertimewell.com/work"><li class = "listli" id = "work">PORTFOLIO</li></a>
<a class = "alist" href = "http://www.coopertimewell.com/contact"><li class = "listli" id = "contact">CONTACT</li></a>
</ul>

我正在使用以下代码 -

 Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (404) Not Found."
 CategoryInfo: NotSpecified: (:) [],MethodInvocationException
 FullyQualifiedErrorId: WebException

0 个答案:

没有答案
相关问题