Amazon S3 get files in rest mode see API http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html
Use C # To construct the following request
GET/objectname HTTP/1.1 HOST: bucketname. s3.amazonaws. comdate: dateauthorization: signaturevaluerange: bytes = byte_range
PseudoCode:
1 Httpwebrequest request = webrequest. Create ( " URL " ) As Httpwebrequest; 2 Webheadercollection headers = (RequestAs Httpwebrequest). headers; 3 4 String Httpdate 5 = Datetime. utcnow. tostring ( " DDD, DD Mmm yyyy hh: mm: SS " , System. Globalization. datetimeformatinfo. invariantinfo) + " GMT " ; 6 7 8 String Canonicalstring = " Put/test1.doc \ n X-AMZ-Date: " + Httpdate + " \ N/ " ; 9 10 Encoding AE = New Utf8encoding (); 11 12 Hmacsha1 Signature = New Hmacsha1 (); 13 14 Signature. Key = AE. getbytes ( " Serectid " ); 15 Byte [] Bytes = AE. getbytes (canonicalstring ); 16 Byte [] Morebytes =Signature. computehash (bytes ); 17 18 String Encodedcanonical = Convert. tobase64string (morebytes ); 19 20 Headers. Add ( " Authorization " , " AWS accessid " + " : " + Encodedcanonical ); 21 22 Request. method = " Put " ; 23 Request. Date = Datetime. utcnow; 24 25 String Postdata = @" Test-1.doc " ; 26 Byte [] Bytearray = Encoding. utf8.getbytes (postdata ); 27 28 Request. contenttype = " Text/plain " ; // "Application/X-WWW-form-urlencoded "; 29 30 Request. contentlength =Bytearray. length; 31 32 Stream datastream = Request. getrequeststream (); 33 34 Datastream. Write (bytearray, 0 , Bytearray. Length ); 35 36 Datastream. Close (); 37 38 Webresponse response =Request. getresponse (); 39 40 Console. writeline (httpwebresponse) Response). statusdescription ); 41 42 Datastream = Response. getresponsestream (); 43 44 Streamreader reader = New Streamreader (datastream ); 45 46 String Responsefromserver = Reader. readtoend (); 47 48 Reader. Close (); 49 Datastream. Close (); 50 Response. Close ();