Need help with XMLHTTP 
Author Message
 Need help with XMLHTTP

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



Sat, 30 Oct 2004 15:53:55 GMT  
 Need help with XMLHTTP
is a proxy server in use? did you run the proxycfg.exe?
You may also run to get the latest MSXML4 library from Microsoft

Otherwise your code looks to be similiar to what I have done that works
fine.....

Brian


Quote:
> 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



Wed, 10 Nov 2004 00:22:41 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. need help from expert on xmlhttp post

2. XMLHTTP XMLDOM Need help

3. Help with creating a XMLHttp request..

4. IE6 - cache not clearing/refreshing when I use XMLHTTP...please help

5. help on "Microsoft.XMLHTTP"

6. {Need Help Big Project Need Help}

7. need need help help (911)!!!!!

8. I need help with a datediff problem ( a fairly new user who needs help)

9. Rookie needs help clearing the Clipper hurdle (DBase help needed)

10. XMLHTTP in .Net?

11. XMLHTTP class in .NET?

12. XMLHTTP in VB.Net

 

 
Powered by phpBB® Forum Software