Solved

Vb6 code for Amazon S3 Simple Storage Solution

Posted on 2011-03-22
5
1,657 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

This is an explanation of a simple data model to help parse a JSON feed
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.

738 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