diff --git a/scripts/showHTMLTitle.nse b/scripts/showHTMLTitle.nse
index 24ca0f09b..f4d074c20 100644
--- a/scripts/showHTMLTitle.nse
+++ b/scripts/showHTMLTitle.nse
@@ -17,9 +17,7 @@ require "stdnse"
portrule = shortport.service({'http', 'https'})
action = function(host, port)
- local url, socket, request, result, status, s, title, protocol
-
- url = "http://" .. host.name
+ local socket, request, result, status, s, title, protocol
socket = nmap.new_socket()