title: Msxml2.serverxmlhttp.6.0 in classic ASP sends GET instead of POST
body: <p>I'm trying to send a request to Twilio SMS Gateway from an .asp page of the product we're supporting.</p>
  
  <p>I am using the following code to compose a request and send it:</p>
  
  <pre><code>Set oXMLHTTP = Server.CreateObject("Msxml2.serverXMLHTTP.6.0")
  sMethod = "POST"
  oXMLHTTP.Open sMethod, sUrl, false, smsAuthUser, smsAuthPass 'url, username and password are valid and included in configuration file
  oXMLHTTP.setRequestHeader "Authorization", "Basic "&amp; base64(smsAuthUser&amp;"."&amp;smsAuthPass)
  oXMLHTTP.setRequestHeader "Content-Length", Len(sPostData)
  oXMLHTTP.Send sPostData
  </code></pre>
  
  <p>The request is being sent, but instead of sending a message it retrieves a list of messages sent earlier (GET request behavior).</p>
  
  <p>Same request with the same authorization and post data from Chrome Postman works like a charm, so it appears to be the xmlhttp object issue.</p>
  
  <p>What can cause the object to send a request using wrong method, and what are potential workarounds?</p>