Solved

Vb6 code for Amazon S3 Simple Storage Solution

Posted on 2011-03-22
5
1,617 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

821 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