title: Vbscript error handing
body: <p>I have a vbscript that sends a post command to a website and collects data.
  The problem I have is that sometimes the webpage becomes unavailable and the vbscript ends with an error: 800C0005 "The system cannot locate the resource specified"</p>
  
  <p>With some search I have been trying to use the code below, but hasn't been working </p>
  
  <pre><code>Dim xmlhttp
  Set xmlhttp = createobject("msxml2.xmlhttp.6.0")
  
  xmlhttp.open "post", "https://website.com", False
  xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
  xmlhttp.send
  Get_HTML = xmlhttp.responsetext
  
  On Error Resume Next
  
  If Err.Number &lt;&gt; 0 Then
    Err.Clear
  End If
  </code></pre>