title: file_get_contents failed to open stream: HTTP request failed! 404 Not Found
body: <p>I am using file_get_contents in my site xyz.com to get an image in demo.com but it return an error:</p>
  
  <p><b>Warning</b>:  file_get_contents(<a href="http://demo.com/wp-content/uploads/2016/11/2-1.jpg" rel="nofollow noreferrer">http://demo.com/wp-content/uploads/2016/11/2-1.jpg</a>): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
   in <b>/home/xyz.com/public_html/core_functions.php</b> on line <b>113</b><br /></p>
  
  <p>That file <a href="http://demo.com/wp-content/uploads/2016/11/2-1.jpg" rel="nofollow noreferrer">http://demo.com/wp-content/uploads/2016/11/2-1.jpg</a> is exist. But file_get_contents warning it 404.</p>