Sending data to webserver

E

Eric

Hi,

In an old eVB program, it sends data to a ASP program with this:

dim xmlHTTP as XMLHTTPRequest
set xmlHTTP = CreateObject("Microsoft.XMLHTTP")
xmlHTTP.Open "POST", url-string, False
xmlHTTP.Send

result = xmlHTTP.ResponseText

Now I am trying to rewrite the program to vb.NET 2005, but XMLHTTPRequest is
unknown.

I assumed I needed:

dim xmlHTTP as Net.HttpWebRequest
dim Result as Net.HttpWebResponse

urlstring = "...."

xmlHTTP = Net.HttpWebRequest.Create(urlstring)
xmlHTTP.TimeOut = 20000
result = xmlHttp.GetResponse
resulttext = result.StatusDescription

The ASP page on the server responds with either "ACK" or "NACK" and for the
eVB program is works, but my result is "OK"

Where am I going wrong here?

rg,
Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,233
Latest member
AlyssaCrai

Latest Threads

Top