little change

This commit is contained in:
Schrolli 2015-05-28 13:26:00 +02:00
parent b3ee8d29ae
commit 5454e4980f

View file

@ -57,8 +57,10 @@ def run(typ,freq,data):
else:
logging.warning("Invalid Typ: %s", typ)
httprequest = httplib.HTTPConnection(url)
httprequest.request("HEAD", url)
url_path = urlparse(url)#get the URL path
httprequest = httplib.HTTPConnection(url_path[2])
httprequest.request("GET", url)
except:
logging.exception("cannot send HTTP request")