only thing i have in the archive is for downloading a file, using XMLHTTP .open(GET) and .send method, presume there is a PUT? sorry, cant help anymore
set objXMLHTTP = CreateObject("msxml2.XMLHTTP")
' method, url, asynchronous, username, password
objXMLHTTP.open "GET", URL, False, user, passwd
objXMLHTTP.send
if objXMLHTTP.status <> 200 then
' Log("Error. Status code: " & objXMLHTTP.status & ", " &
objXMLHTTP.statustext & " " & URL)
msgbox "Error. Status code: " & objXMLHTTP.status & ", " &
objXMLHTTP.statustext & " " & URL
exit function
end if
set objStream = CreateObject("ADODB.Stream")
objStream.Type = 1 ' 1 = binary, 2 = Text (default = 2)
objStream.Open
objStream.type = 1
objStream.write objXMLHTTP.responseBody
TimeEnd = Now
objStream.savetofile SavePath, adSaveCreateOverWrite
BytesRcvd = objStream.size
BytesExpect = objXMLHTTP.getResponseHeader("Content-Length")
objStream.Close
set objStream = Nothing
set objXMLHTTP = Nothing