Solved

Vb6 code for Amazon S3 Simple Storage Solution

Posted on 2011-03-22
5
1,592 Views
Last Modified: 2012-06-27
Looking for working Vb6 code to access Amazon S3 Simple Storage Solution via HTTP.
I have a AccessKey and SecretKey that I have been using with JungleDisk for several years.
I have tried sample code at http://blog.gobansaor.com/2008/02/22/xlaws-excel-vba-code-for-accessing-amazons-s3-and-simpledb/ but it is not working (Error - "The request signature we calculated does not match the signature you provided. Check your key and signing method.").

Class for HMAC_SHA256 was found here. Added method for HMAC_SHA1 which was confirmed OK via online HMAC_SHA1 generators.
http://www.vbforums.com/showthread.php?t=635398

The problem is putting all the pieces together correctly for the request. HMAC_SHA1, Base64, MD5, etc.
Currently trying with CreateObject("MSXML2.XMLHTTP") Open/Send

Looking for any of the following:
1. GetService - Retrieve bucket names.
2. GET file info
3. Download file.
4. Upload file.
5. How is versioning handled.
0
Comment
Question by:danaseaman
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:coolcurrent4u
ID: 35230998
does amazon have api for that, it should be the first place you should look. you can post the code you used and the api here so that have a look at the problem
0
 
LVL 22

Author Comment

by:danaseaman
ID: 35231087
Already looked there. Amazon has SDK and API for Java, .Net, and other languages but nothing for Vb6. Looked at cSocketMaster for communicating with server but I don't think it is 100% reliable. Looks like it is going to be a chore to put this all together.
0
 
LVL 4

Expert Comment

by:coolcurrent4u
ID: 35232722
also note that its a paid service, and as such if you develop for it without something like an api key, you program might not work as expected
0
 
LVL 4

Accepted Solution

by:
coolcurrent4u earned 500 total points
ID: 35233044
0
 
LVL 22

Author Comment

by:danaseaman
ID: 35233583
As mentioned in first post I have the keys for Amazon S3 since I have been using the service for several years via JungleDisk client.
It is a paid service but it's very cheap and I think new users get 5Gb free.
See http://aws.amazon.com/s3/#pricing

Thanks for those links. I was already able to connect using legacy Hmac_Sha1 crypto. Now I'm off to implementing the more secure Hmac_Sha256.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question