Coder Social home page Coder Social logo

aws4c's People

Watchers

 avatar

aws4c's Issues

Problem making on OS X?

What steps will reproduce the problem?
1.  type 'make' on a mac.


What is the expected output? What do you see instead?

It should build, but instead, I see:
cc -g -Wall   -c -o aws4c.o aws4c.c
aws4c.c:394:66: error: macro "curl_easy_setopt" passed 4 arguments, but takes 
just 3


What version of the product are you using? On what operating system?

0.3 of aws4c on OS X 10.6 (Snow Leopard)

Please provide any additional information below.

Line 394 of aws4c.c reads:
curl_easy_setopt ( ch, CURLOPT_POST, CURLOPT_POSTFIELDSIZE , 0 );

Should it read:
curl_easy_setopt ( ch, CURLOPT_POSTFIELDSIZE , 0 );
as the previous line already sets the CURLOPT_POST to 1?



Original issue reported on code.google.com by znjpeterson on 9 Jul 2010 at 11:52

upload binary data bug and memory leak bug

What steps will reproduce the problem?
1. upload binary data failed.
2. memory leak found.

What is the expected output? What do you see instead?
1. replace aws_iobuf_getline in readfunc with aws_iobuf_getData (please see my 
attachment)
2. aws_iobuf_free must free buf in IOBufNode

What version of the product are you using? On what operating system?

aws4c.0.5.tgz  ,  mac lion

Please provide any additional information below.

I have modify a new version, please check my attachment, and it works now for 
me.

Original issue reported on code.google.com by [email protected] on 13 Mar 2012 at 10:48

Attachments:

__aws_urlencode isn't cutting it

__aws_urlencode isn't really cutting it. The current implementation seems to be 
barfing on tabs. Can I suggest switching to curl_easy_encode(...) ?

/**
 * Perhaps something like this would be more correct.
 */
static void __aws_urlencode ( char * src, char * dest, int nDest )
{
  CURL* curl =  curl_easy_init( );
  char *encoded = curl_easy_escape(curl, src, strlen(src));

  size_t length = (nDest - 1);

  __debug ( "Encoding: %s", src );

  if (strlen(encoded) < length) {
    length = strlen(encoded);
  }

  memcpy(dest, encoded, length + 1);
  __debug ( "Encoded To: %s", dest );

  curl_free(encoded);
  curl_easy_cleanup(curl);
}

Original issue reported on code.google.com by [email protected] on 18 Aug 2013 at 8:45

403 forbidden error

I tried the latest aws4c library adn tried running the sqs_example provided in 
it. However I get a 403 forbidden error. I have correctly set the access and 
secret keys in awsAuth. I have tried it out with the java code samples provided 
by amazion and SQS work fine.
A debug log is attached.


Original issue reported on code.google.com by [email protected] on 14 Mar 2011 at 5:38

getting this error

cc -g -Wall    s3_get.c aws4c.o  `curl-config --libs` -lcrypto -o s3_get
/usr/bin/ld: cannot find -lfbopenssl
collect2: ld returned 1 exit status
make: *** [s3_get] Error 1


Original issue reported on code.google.com by [email protected] on 21 Sep 2011 at 12:23

sqs_create_queue doesn't work

I found that method sqs_create_queue doesn't work

It's an error in source code

Look at sqs_create_queue method implementation

There is a line  snprintf ( resource, sizeof(resource), SQSHost, Req, name, 
awsKeyID, signature, date );

We need to exchange Req & SQSHost params

The right implementation is  snprintf ( resource, sizeof(resource), Req, 
SQSHost, name, awsKeyID, signature, date );

Please commit to repo this fix

Original issue reported on code.google.com by [email protected] on 11 Mar 2014 at 7:30

Amazon S3: Modify part of the object

I have uploaded an object to my bucket. I want to modify a part of the object.
i.e: I want to write a few bytes to the file at a specific byte location.

I would like to know, if Amazon S3 supports this feature.

Thanks. 

Original issue reported on code.google.com by [email protected] on 27 May 2011 at 7:03

403 forbidden error


Failed to create queue

RV 0
CODE [403]
RESULT  [403 Forbidden]
LEN     [310]
S[ 22] <?xml version="1.0"?>
S[288] <ErrorResponse 
xmlns="http://queue.amazonaws.com/doc/2008-01-01/"><Error><Type>Sender</Type><Co
de>AccessDenied</Code><Message>Access to the resource 
http://queue.amazonaws.com is 
denied.</Message><Detail/></Error><RequestId>514890eb-89cb-42b3-b523-5f21b81007e
c</RequestId></ErrorResponse>RV 6
CODE [0]
RESULT  [(null)]
LEN     [0]

Original issue reported on code.google.com by [email protected] on 21 Sep 2011 at 12:24

No s3_delete_object

Hi,

The library doesn't provide a way to delete S3 objects. Please add.

Thanks

Original issue reported on code.google.com by [email protected] on 29 May 2011 at 3:46

region parameter . .

Hi,

 I ma using this library to create a simple queue at Amazon. When I create a queue, I am getting error message (cannot create a queue).Following is the URL posted by the curl to Amazon:

 http://queue.amazonaws.com/?Action=ListQueues&QueueNamePrefix=AWS-SQS-Sample&AWSAccessKeyId=NABEEL34D&Signature=o%2BGSj3DFt8h8g5QP4uQlgI%2B%2Fd%2Bk%3D&SignatureVersion=1&Timestamp=2014-04-22T20:55:26Z&Version=2009-02-01

 I debugged the problem and used curl_get_info(), the returning status code is 200. 

 I suspect that Amazon requires to set region parameter. In library, I cannot find the region parameter. Can anyone please guide me for that ? ?

Original issue reported on code.google.com by [email protected] on 22 Apr 2014 at 9:07

download video from S3 storage

Hi,

 I have downloaded the video from S3 storage into I/O Buffer. Now how to store the video on to Disc. Currently, I am getting line one by one by using getline function and writing it on the disc. But it seems that it is not working properly.

Regards,
Nabeel

Original issue reported on code.google.com by [email protected] on 11 May 2014 at 3:17

Running on Windows

Hi,

This lib could be compiled to run in a DLL for Windows?
If yes, could you to put in home to download?
I need to use in a project compiled in FreePascal.

Thanks,
Marcos Douglas

Original issue reported on code.google.com by [email protected] on 25 May 2013 at 8:14

__aws_urlencode

What steps will reproduce the problem?
1. Send a message to SQS like: {Hello}[Queue]
2. Receive a Bad request

What is the expected output? What do you see instead?
Send message should succeed

What version of the product are you using? On what operating system?
All

Please provide any additional information below.
badChars in the url encoding functions needs to have "<>{}[]()" included:

static void __aws_urlencode ( char * src, char * dest, int nDest )
{ 
...
  const char * badChrs = " \n$&+,/:;=?@<>[]{}()";
...

Original issue reported on code.google.com by [email protected] on 4 Sep 2012 at 11:17

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.