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? |