Class

Microsoft_XMLHTTP_1

Inheritance
< Object
Included Modules
WIN32OLE::VARIANT

XML HTTP Request class.

Attributes

Name Visibility R/W Description
clsid public R
dispatch public R
lastargs public R
progid public R

Methods

Class

Visibility Signature
public new (obj = nil)

Instance

Visibility Signature
public abort ()
public getAllResponseHeaders ()
public getResponseHeader (arg0)
public method_missing (cmd, *arg)
public onreadystatechange= (arg0)
public open (arg0, arg1, arg2=nil, arg3=nil, arg4=nil)
public readyState ()
public responseBody ()
public responseStream ()
public responseText ()
public responseXML ()
public send (arg0=nil)
public setRequestHeader (arg0, arg1)
public status ()
public statusText ()

Class Method Detail

new(obj = nil)

Instance Method Detail

abort()

VOID abort Abort HTTP request

getAllResponseHeaders()

BSTR getAllResponseHeaders Get all HTTP response headers

getResponseHeader(arg0)

BSTR getResponseHeader Get HTTP response header

  BSTR arg0 --- bstrHeader [IN]

method_missing(cmd, *arg)

onreadystatechange=(arg0)

VOID onreadystatechange Register a complete event handler

open(arg0, arg1, arg2=nil, arg3=nil, arg4=nil)

VOID open Open HTTP connection

  BSTR arg0 --- bstrMethod [IN]
  BSTR arg1 --- bstrUrl [IN]
  VARIANT arg2 --- varAsync [IN]
  VARIANT arg3 --- bstrUser [IN]
  VARIANT arg4 --- bstrPassword [IN]

readyState()

I4 readyState Get ready state

responseBody()

VARIANT responseBody Get response body

responseStream()

VARIANT responseStream Get response body

responseText()

BSTR responseText Get response body

responseXML()

DISPATCH responseXML Get response body

send(arg0=nil)

VOID send Send HTTP request

  VARIANT arg0 --- varBody [IN]

setRequestHeader(arg0, arg1)

VOID setRequestHeader Add HTTP request header

  BSTR arg0 --- bstrHeader [IN]
  BSTR arg1 --- bstrValue [IN]

status()

I4 status Get HTTP status code

statusText()

BSTR statusText Get HTTP status text