dbTalk Databases Forums  

MSXML2.XMLHTTP60 runtime error

comp.databases.ms-access comp.databases.ms-access


Discuss MSXML2.XMLHTTP60 runtime error in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karl
 
Posts: n/a

Default MSXML2.XMLHTTP60 runtime error - 05-31-2011 , 04:32 PM






I am using MSXML2.XMLHTTP60 to GET and POST some data to SugarSync. I
also need to PUT some data to SS. The PUT is working (file on SS is
being unpdated) but I am getting a runtime error on the send line.
Following is the code

Public Sub PutFile()

Call GetSSToken

Dim XMLString As String, Token As String, LocalFile As String
Dim msXml As MSXML2.XMLHTTP60
Set msXml = New MSXML2.XMLHTTP60

msXml.Open "Put", "https://api.sugarsync.com/file/:sc:133xxx:122_80xxx/
data"

msXml.setRequestHeader "Content_Type", "text/html"

msXml.setRequestHeader "Authorization", gSSToken

msXml.send "This is data to be added to the file 412" (runtime error
here)

Debug.Print msXml.responseText

Set msXml = Nothing

End Sub

The error numbers are -2147467260 (800004004)

Does anyone see what I need to change?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.