title: MSXML2.ServerXMLHTTP Call in ASP
body: <p>I am using Confident Technologies Image Captcha and within their technologu I need to post to their servers, which in return will then pass back the HTML code. See: <a href="https://login.confidenttechnologies.com/docs/restful" rel="nofollow noreferrer">https://login.confidenttechnologies.com/docs/restful</a></p>
  <p>I have produced a an VBScript for this but I can get the results I need.  The Function is :</p>
  <pre><code>FUNCTION CreateSecurity()
    Dim nURL : nURL = &quot;http://captcha.confidenttechnologies.com/captcha&quot;
    Dim SendStr : SendStr =     &quot;api_username=jqcsgvsi47g9BEgncu2Mb9pINE4W5tEYNPIwMHFR&amp;api_password=pHm5IDZhLiaeY8raDStdEyoRiBeqoTSMDeFxkWcM&amp;customer_id=K9PWSU6s&amp;site_id=storeboard&quot;
    Set xmlhttp = Server.CreateObject(&quot;MSXML2.ServerXMLHTTP.6.0&quot;)
    xmlhttp.open &quot;POST&quot;, nURL, false
    xmlhttp.setRequestHeader &quot;Content-Type&quot;, &quot;application x-www-form-urlencoded&quot;
    xmlhttp.send(SendStr)
    Response.write xmlhttp.responseText
    Set xmlhttp = nothing
  END FUNCTION
  </code></pre>
  <p>I simply call this function where I want the capture to appear.  However when I call the function I get the following result:</p>
  <blockquote>
  <p>Bad Request</p>
  <p>site_id may not be blank.</p>
  <p>api_password may not be blank.</p>
  <p>api_username may not be blank.</p>
  <p>customer_id may not be blank.</p>
  </blockquote>
  <p>See Results: <a href="http://www.storeboard.com/join_now_new.asp" rel="nofollow noreferrer">http://www.storeboard.com/join_now_new.asp</a></p>
  <p>Does anyone know what I am doing wrong?</p>
  <p>Any help would be truly appreciated.</p>
  <p>Many thanks in advance,
  Paul</p>