Archived Forum Post

Index of archived forum posts

Question:

http AWS S3 Vb6

Mar 21 '16 at 20:17

Hi I downloaded your demo for vb6

I am specifically looking to use it with amazon S3 The demo kicks back error 403 forbidden.

I am using the the proper keys. Is the DLL upto date and still supported for AWS or am I doing something wrong?

If I can get the demo to work then I want to buy this - providing it works of course. I using it as a reference, if I try and load it as a control it loads, however the controls are not rendered properly. They come up as black squares.

If its no longer supported for vb6, is it for .net? I don't really want to use .net - but I will if I have to.

`S3_ListBucketObjects: DllDate: Mar 11 2016 ChilkatVersion: 9.5.0.56 UnlockPrefix: Anything for 30-day trial Username: WIN7VM:GateKeeper Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 0 bucketName: monkeyjack awsAuthHeaderV2: stringToSign: GET

Mon, 21 Mar 2016 17:46:52 +0000 /monkeyjack/ --awsAuthHeaderV2 s3_hostHeader: monkeyjack.s3.amazonaws.com Authorization: AWS replacedmykey24365789 httpRequestStr: a_quickReq: quickHttpRequest: httpVerb: GET url: http://monkeyjack.s3.amazonaws.com/ openHttpConnection: Opening connection directly to HTTP server. httpHostname: monkeyjack.s3.amazonaws.com httpPort: 80 ssl: 0 HTTP connection succeeded. --openHttpConnection buildQuickRequest: genStartLine: startLine: GET / HTTP/1.1 --genStartLine addCookies: Not auto-adding cookies. sendCookies: 1 cookieDir: --addCookies --buildQuickRequest sendRequestHeader: sendHeaderElapsedMs: 0 --sendRequestHeader statusCode: 403 statusText: Forbidden readResponseBody: Response is chunked. --readResponseBody --quickHttpRequest --a_quickReq convertResponseBodyToUtf8: No charset specified, assuming Windows-1252 Converting to utf-8 charset. fromCodePage: 1252 --convertResponseBodyToUtf8 Returning failed status because of HTTP response code. --httpRequestStr Failed. --S3_ListBucketObjects --ChilkatLog `


Answer

Hi Rick,

Please check to see if this latest pre-release fixes it:

32-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-win32.zip

64-bit Download: http://www.chilkatsoft.com/download/preRelease/ChilkatAx-9.5.0-x64.zip

If not, please let me know.


Answer

I don't know if this helps you any ...

If i use your S3 sample code to delete a file I get the response below. All the rest of the S3 code samples kick back the 403 error

responseHeader: x-amz-request-id: 2665388F2E6C5812 x-amz-id-2: i7sY9NzdG7EatOJb/n/oOn5cKiHd/MRC1MNnCx15s6++qr95fNNzBTUbmxrmnT/4 Content-Type: application/xml Transfer-Encoding: chunked Date: Mon, 21 Mar 2016 18:09:43 GMT Server: AmazonS3 responseBody: <?xml version="1.0" encoding="UTF-8"?> <error>RequestTimeTooSkewed<message>The difference between the request time and the current time is too large.</message><requesttime>Mon, 21 Mar 2016 21:04:21 +0000</requesttime><servertime>2016-03-21T18:09:45Z</servertime><maxallowedskewmilliseconds>900000</maxallowedskewmilliseconds><requestid>2665388F2E6C5812</requestid><hostid>i7sY9NzdG7EatOJb/n/oOn5cKiHd/MRC1MNnCx15s6++qr95fNNzBTUbmxrmnT/4</hostid></error> Failed. --S3_DeleteObject --ChilkatLog