Python - Load external links
===

I have an intranet web application which executes a web page on a local machine running the CGIHTTPServer server.

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.

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.

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

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 ??

