This is s3curl source code(2013/01/17)