title: Loading http page in an iframe of https page
body: <p>I have a page in a https site say <code>https://www.example.com</code> which contains an iframe that points to another php page <code>target.php</code> in same site .</p>
  
  <pre><code>&lt;iframe src="/target.php"&gt;&lt;/iframe&gt; 
  </code></pre>
  
  <p>This target.php is redirecting the request to another <strong>http</strong> url using </p>
  
  <pre><code>header("Location: http://demosite/page"  ,TRUE, 307) 
  </code></pre>
  
  <p>Unfortunately , this redirection to http site is not working from the https iframe . Although it works from iframe in http page . </p>
  
  <p>I have tried </p>
  
  <pre><code>file_get_contents("http://demosite/page") 
  </code></pre>
  
  <p>and curl in <code>target.php</code> (instead of header redirection) . Those did not return the page in proper format .</p>
  
  <p>Please can someone advise me how to display a http page in an iframe of https page.</p>
  
  <p>Thanks in advance .</p>