Author: AlanMcG | Posted on: 11/27/2008 6:51:06 AM | Views : 953

 Hi there,
I want to send an http request using either an MSXML2.XMLHTTP or a MSXML2.ServerXMLHTTP60 object (see code below), and I'll read some data returned after I send it.
How do I tell my program to wait while I receive the response? I've read something about 'onreadystatechange' but don't know if that's what I should use, or how to use it.
Many thanks for any help!

  
Dim my_request As New MSXML2.XMLHTTP60

my_request.open("POST", my_url, False)
my_request.setRequestHeader("Content-type", "test/xml")
my_request.send("<head><body/></head>")
  
...

Go to the complete details ...