title: curl or wget gets invalid jpg image but browser gets valid image
body: <p>I run command like</p>
  
  <pre><code>wget https://odis.homeaway.com/odis/listing/5895882c-6c65-47f5-b782-e13b8246e4aa.c10.jpg
  </code></pre>
  
  <p>I try to get above image using curl, the returned image is invalid jpg image. When I try with browser and save image as, I get valid jpg image. Even when I try with file_get_contents it returns false.</p>
  
  <pre><code>    $image = 'https://odis.homeaway.com/odis/listing/5895882c-6c65-47f5-b782-e13b8246e4aa.c10.jpg'
      $image_data = file_get_contents($image);
      try {
          echo 'saving';
          $image1 = imagecreatefromjpeg($image_data);
  
      } catch (Exception $ex) {
          echo 'error';
      }
  </code></pre>
  
  <p>How to get this image with <code>curl</code>, <code>wget</code>, or <code>file_get_contents</code>?</p>