title: How can I get the source of an iframe that only works on specified domains?
body: <p>So I'm trying to read the source of an url, let's say domain.xyz. No problem, I can simply get it work using HttpWebRequest.</p>
  
  <pre><code>HttpWebRequest request = (HttpWebRequest)WebRequest.Create(urlAddress);
  HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  </code></pre>
  
  <p>My problem is that it will return the page source, but without the source of the iframe inside this page. I only get something like this:</p>
  
  <pre><code>&lt;iframe src="http://anotherdomain.xyz/frame_that_only_works_on_domain_xyz"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>I figured out that I can easily get the src of the iframe with WebBrowser, or basic string functions (the results are the same), and create another HttpWebRequest using the address. The problem is that if I view the full page (where the frame was inserted) in a browser (Chrome), i get the expected results. But if I copy the src to another tab, the contents are not the same. It says that the content I want to view is blocked because it's only allowed through domain.xyz.</p>
  
  <p>So my final question is:
  How can I simulate the request through a specified domain, or get the full, rendered page source?</p>