try:
s = Session()
req = Request('GET', url, headers={'Host':"www.test.com"})
prepped = req.prepare()
resp = s.send(prepped)
if resp.status_code == 200:
print resp.text
else:
return None
except Exception:
print traceback.format_exc()
return None