S3 redirects object 302 with s3cmd

I want to create a redirect object.

It is redirected to a JSON file. The HTML expires header will not work for me.

touch google
s3cmd --add-header='Location: http://www.google.com/' -P put google s3://bucket/google

This does not work as I do not install HTTP-sttaus in 302

I prefer s3cmdsince it is already installed on the target server, but python can also fine if s3cmdit cannot do this.

+4
source share
1 answer
+3

Source: https://habr.com/ru/post/1537191/


All Articles