This sample walks you through making an HTTP request using WinHttp 5.0 which ships with MSXML 4.0. Print

  • 0

 

Dim   theURL



Dim inet2=Server.CreateObject("WinHttp.WinHttpRequest.5.1")

Dim resp



theURL="http://www.EDTHosting.com/hosting.aspx"



inet2.open("GET", theURLURL, True)

inet2.Send 'postData

'Time out in 60 seconds

inet2.WaitForResponse(60)

resp=inet2.responseText



response.write("Here is the data from the remote site:" & server.htmlEncode(resp) )


 


Was this answer helpful?

« Back