Does anyone know why the Send method of XMLHTTP will
return the error Method '~' of object '~' failed. I also
got a Doctor Watson on the the server machine with the
file INETINFO.EXE Accesion Violation?
Please note this works on another machine.
Here is my code.
Private Sub Command1_Click()
On Error GoTo ErrorHandler
Dim XMLHTTP As XMLHTTP
Dim strQueryString As String
Dim strServer As String
Dim lngPos As Long
Dim RetrieveResults As String
Set XMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0")
strServer = "Machine1"
XMLHTTP.open "POST", "http://" & strServer
& "/amazonbin/amazon.dll?_name=WebRufuse20?
Form=GETAGENTDETAILS?User=pcaxp?Template=?MaxRows=1", False
XMLHTTP.setRequestHeader "Content-
Type", "application/x-www-form-urlencoded"
XMLHTTP.send "AGENT_CODE$=&BRANCH_NAME$=&HO_CODE$=&NAME$=A&
POSTCODE$=&SIB_CODE$="
RetrieveResults = ""
RetrieveResults = XMLHTTP.responseText
MsgBox RetrieveResults
Exit Sub
ErrorHandler:
MsgBox Err.Description
End Sub