I solved my problem checking for title tag on the body of the page
def Mypage(self,ip):
try:
conn = httplib.HTTPConnection(ip)
conn.request("GET", "/path/to/mypage.php")
resp = conn.getresponse()
if (resp.status == 200):
html = BeautifulSoup(resp.read())
data = html.find('title')
titulo = str(data.contents[0])
if titulo == "THE TITLE":
return True
else:
return False
else :
return False
except :
return False