Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I upload file to Azure Blob Storage Using Classic ASP?
    primarykey
    data
    text
    <p>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.</p> <p>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.</p> <pre><code>' replace with your account's settings ' setup the URL baseUrl = "https://&lt;myaccount&gt;.blob.core.windows.net" Set http = Server.CreateObject("MSXML2.ServerXMLHTTP") PathUrl = baseUrl &amp; "/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 &lt;myaccount&gt;:?????" 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 </code></pre> <p>I get the error AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.</p> <p>Thanks</p> <p>Graeme</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload