title: No HTTP Response when direct stream uploading to Amazon S3
body: <p>I currently have a function that grabs an mp3 file from a remote url, and uploads it to an Amazon S3 bucket.</p>
  
  <p>The function seems to work fine in that the file appears in S3, however I'm concerned that while testing this on my local server using a tunnel (ngrok) the page doesn't seem to be returning any HTTP status.</p>
  
  <p>It does return 200 when I download the file locally first, then upload it. As we're dealing with large audio files, I'm trying to make the first idea work in that it's more efficient (I think).</p>
  
  <p>Is there a way to make the page return a HTTP status code and should I be concerned that it currently doesn't?</p>
  
  <p>Here is the code snippet using the V2 Amazon SDK in PHP</p>
  
  <pre><code>$config = array('key' =&gt; AMAZON_S3_KEY,'secret' =&gt; AMAZON_S3_SECRET,'region' =&gt; 'us-west-2'); 
  
  $s3 = Aws::factory($config)-&gt;get('s3')-&gt;registerStreamWrapper();
  $s3-&gt;putObject(array(
      'Bucket' =&gt; 'mybucket',
      'Key'    =&gt; 'filename.mp3',
      'ContentLength' =&gt; $size,
      'Body'   =&gt; fopen($url, 'r')
  ));
  </code></pre>