gitpan / net-amazon-s3-policy Goto Github PK
View Code? Open in Web Editor NEWRead-only release history for Net-Amazon-S3-Policy
Home Page: http://metacpan.org/release/Net-Amazon-S3-Policy
Read-only release history for Net-Amazon-S3-Policy
Home Page: http://metacpan.org/release/Net-Amazon-S3-Policy
Net-Amazon-S3-Policy version 0.1.3 Net::Amazon::S3::Policy gives you an object-oriented interface to man‐ age policies for Amazon S3 HTTP POST uploads. Amazon S3 relies upon either a REST interface (see Net::Amazon::S3) or a SOAP one; as an added service, it is possible to give access to the upload of resources using HTTP POSTs that do not involve using any of these two interfaces, but a single HTML FORM. The rules you have to follow are explained in the Amazon S3 Developer Guide. More or less, it boils down to the following: · if the target bucket is not writeable by the anonymous group, you’ll need to set an access policy; · almost every field in the HTML FORM that will be used to build up the HTTP POST message by the browser needs to be included into a policy, and the policy has to be sent along within the HTTP POST · together with the policy, also the bucket owner’s AWS ID (the pub‐ lic one) has to be sent, together with a digital signature of the policy that has to be created using the bucket owner’s AWS secret key. This module lets you manage the build-up of a policy document, provid‐ ing you with tools to get the Base64 encoding of the resulting JSON policy document, and to calculate the Base64 encoding of the signature. See "Example" for a complete example of how to do this. In addition to policy synthesis, the module is also capable of parsing some policy (base64-encoded or not, but in JSON format). This shouldn’t be a need in general... possibly for debug reasons. AVAILABILITY You can either grab the module from CPAN, or see what's going on at http://repo.or.cz/w/Net-Amazon-S3-Policy.git INSTALLATION To install this module, run the following commands: perl Makefile.PL make make test make install Alternatively, to install with Module::Build, you can use the following commands: perl Build.PL ./Build ./Build test ./Build install DEPENDENCIES version and JSON. COPYRIGHT AND LICENCE Copyright (C) 2008, Flavio Poletti This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.