Python - Load external links
<p>I have an intranet web application which executes a web page on a local machine running the CGIHTTPServer server.</p>

<p>The page will try and contact a remote server to get the actual page required, the local server is only running to provide an offline setup/config page and also to detect if the remote server is live and serving the page required.</p>

<p>This works, but involves 2 calls to the remote server, the first to check it's alive and the second one to retrieve the page and it's stylesheets and other external js files etc using a meta refresh I want.</p>

<pre><code>url ='http://somesite'
page = urllib2.urlopen(url,None,10)
page = page.read()
if '&lt;title&gt;This is the page i want&lt;/title&gt;' in page:
    # Page Found &amp; Validated
    print '&lt;meta http-equiv="Refresh" content="0; URL=' +url+'"&gt;'
    pass
</code></pre>

<p>Is it possible to achieve this with a single call?, I can print the PAGE variable which will of course only output the page called and will not load all of it's external stylesheets and links ??</p>
