|Subject:||Sending a file from my application (Indy/Delphi) to an ASP page and then onto another server (Amazon S3)|
|Posted by:||Ross McMillan (email@example.com)|
|Date:||Sun, 21 Mar 2010|
I have a need to store files on Amazon AWS S3, but in order to isolate the
user from the AWS authentication I want to go via an ASP page on my site,
which the user will be logged into. So:
The application sends the file using the Delphi Indy library TidHTTP.Put
(FileStream) routine to the ASP page, along with some authentication stuff
(mine, not AWS) on the querystring.
The ASP page checks the auth details and then if OK stores the file on S3
using my Amazon account.
Problem I have is: how do I access the data coming in from the Indy PUT
using JScript in the ASP page and pass it on to S3. I'm OK with AWS signing,
etc, it's just the nuts and bolts of connecting the two bits (the incoming
request and the outgoing AWS request) ...
I realise this is really an ASP question... but I figure the meat of the
answer is going to be tied up with the HTTP protocol.