title: Amazon S3 Bucket URL's fails to load some files programmatically
body: <p>Amazon S3 Bucket  url's fails to load some files, while these files are browsed directly in browser it's loading fine. No issues at all. What I am trying to do is create a pdf from html using a library called wkhtmltopdf programmatically using PHP.</p>
  <p>The bucket I am trying to access is publicly accessible. Some of these files which are failing is also not the same ones as the previous, it keep's on changing every time. So I am not able to tag any doubts on it. When I checked regarding the  limits of requests to an Amazon S3 bucket, can send up to 5500 requests per second. And here in my case am sending a request of 1600 that's all images files.</p>
  <p>Below is my code.</p>
  <pre><code>&lt;?php
  set_time_limit(120);
  require './aws-autoloader.php';
  
  require './Aws/S3/S3Client.php';
  require './Aws/Exception/AwsException.php';
  
  $s3 = new Aws\S3\S3Client([
      'version' =&gt; 'latest',
      'region' =&gt; 'us-east-1'
  ]);
  
  ?&gt;
  &lt;html&gt;&lt;body&gt;
  
  &lt;?php 
  $response = $s3 -&gt;listObjects(array('Bucket' =&gt;&quot;my-example-bucket&quot;));
  
  
  $data = '&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;meta charset=&quot;UTF-8&quot;&gt;
    &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;Lorem Ipsum&lt;/h1&gt;
    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quod laboriosam atque, consequuntur beatae fugiat in incidunt perspiciatis dolorem ipsum nam itaque animi nobis quam illum dolore. Nam nostrum maiores, ipsa.&lt;/p&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa vero veniam sed ullam commodi! Accusantium, officia vitae, adipisci mollitia, blanditiis voluptates accusamus nam atque repellendus laborum, ullam vel eligendi esse?&lt;/p&gt;';
  
  foreach($response['Contents'] as $key =&gt; $value) {
      
      $image = '';
      
      $path = $value['Key'];
      $image = &quot;https://my-example-bucket.s3.amazonaws.com/$path&quot;;
      $data.='&lt;img src=&quot;'.$image.'&quot; width=&quot;100&quot;&gt;';
      
  ?&gt;
      
  &lt;?php           
  }
  $data.='&lt;/body&gt;
  &lt;/html&gt;';
  
  
  file_put_contents('C:\Users\Administrator\Demo\htdocs\test.html', $data);
  
  
  exec('C:\&quot;Program Files&quot;\wkhtmltopdf\bin\wkhtmltopdf ./test.html ./test.pdf&gt; C:\Users\Administrator\Downloads\my.txt 2&gt;&amp;1');
  ?&gt;
  
  
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>