title: MSXML2.XMLHTTP Request to validate entered URL in ASP Classic
body: <p>Thanks in advance for any help received.</p>
  
  <p>I want to allow our client to enter a URL into a text field which then checks whether the URL exists and works.</p>
  
  <p>There are 3 possible outcomes I want to check for:
  A status of 200 - OK,
  A status of 500 - Server Error,
  Or a status of 404 - page not found.</p>
  
  <p>When executing the following code in ASP classic I get a status code of 12007 when I should be getting 404. Is this because it can't find a webserver to return a code of 404?</p>
  
  <pre><code>Function CheckURL(vURL)
      ON ERROR RESUME NEXT
      Set oXML=Server.CreateObject("MSXML2.XMLHTTP") : oXML.Open "POST",vURL,false : oXML.Send()
      CheckURL = oXML.status
      Set oXML = nothing
  End Function
  </code></pre>
  
  <p>Or is something amiss here. What status codes am I likely to see other than the standard mentioned above.</p>