I am trying to upload files to Azure Blob Storage using Classic ASP (no choice!). However although I can use can list container contents using MSXML2.ServerXMLHTTP I am failing to create blobs. I need to use it to upload PDF files so am using BlockBlob.
I believe I am failing to create the authorisation key correctly. Does anyone have a code sample of creating the authorisation key in Classic ASP VBScript? I have something like below but have no idea how to generate the key in Classic ASP.
' replace with your account's settings
' setup the URL
baseUrl = "https://<myaccount>.blob.core.windows.net"
Set http = Server.CreateObject("MSXML2.ServerXMLHTTP")
PathUrl = baseUrl & "/test/myblob"
' setup the request and authorization
http.open "PUT", PathUrl , false  
'How do I generate this key from the headers and path using HMAC-SHA256 and my prim/sec account key
http.setRequestHeader "Authorization", "SharedKey <myaccount>:?????"
http.setRequestHeader "Date", "2011-6-16 9:22"
http.setRequestHeader "x-ms-date", "2011-06-16 9:22"
http.setRequestHeader "x-ms-version", "2009-09-19"
http.setRequestHeader "Content-Length", "11"
http.setRequestHeader "x-ms-blob-type","BlockBlob"
http.setRequestHeader  "Content-Type", "text/plain; charset=UTF-8"
postData = "hello world"
' send the POST data
http.send postData
' optionally write out the response if you need to check if it worked
 Response.Write http.responseText
I get the error AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
Thanks
Graeme