Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can try something like this:</p> <pre class="lang-vbs prettyprint-override"><code>Set ServerXmlHttp = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0") ServerXmlHttp.open "POST", "http://www.example.com/page.asp" ServerXmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" ServerXmlHttp.setRequestHeader "Content-Length", Len(PostData) ServerXmlHttp.send PostData If ServerXmlHttp.status = 200 Then TextResponse = ServerXmlHttp.responseText XMLResponse = ServerXmlHttp.responseXML StreamResponse = ServerXmlHttp.responseStream Else ' Handle missing response or other errors here End If Set ServerXmlHttp = Nothing </code></pre> <p>where PostData is the data you want to post (eg name-value pairs, XML document or whatever).</p> <p>You'll need to set the correct version of MSXML2.ServerXMLHTTP to match what you have installed.</p> <p>The open method takes five arguments, of which only the first two are required: </p> <pre><code>ServerXmlHttp.open Method, URL, Async, User, Password </code></pre> <ul> <li>Method: "GET" or "POST"</li> <li>URL: the URL you want to post to</li> <li>Async: the default is False (the call doesn't return immediately) - set to True for an asynchronous call</li> <li>User: the user name required for authentication</li> <li>Password: the password required for authentication</li> </ul> <p>When the call returns, the status property holds the HTTP status. A value of 200 means OK - 404 means not found, 500 means server error etc. (See <a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/List_of_HTTP_status_codes</a> for other values.)</p> <p>You can get the response as text (responseText property), XML (responseXML property) or a stream (responseStream property).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload