title: S3 redirect 302 object with s3cmd
body: <p>I wish to create redirect object.</p>
  
  <p>It is redirect to JSON file. HTML expires header will not work for me.</p>
  
  <pre><code>touch google
  s3cmd --add-header='Location: http://www.google.com/' -P put google s3://bucket/google
  </code></pre>
  
  <p>It does not work as I do not set HTTP sttaus to <code>302</code></p>
  
  <p>I prefer <code>s3cmd</code> as it is already installed on target server but python might ok as well if <code>s3cmd</code> can't do that.</p>