Index: /WAeUP_SRP/trunk/WAeUPTool.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTool.py	(revision 5190)
+++ /WAeUP_SRP/trunk/WAeUPTool.py	(revision 5191)
@@ -2045,3 +2045,59 @@
 
 
+    security.declarePublic('web_sniffer') ###(
+    def web_sniffer(self,domain=None,params=None):
+        "web sniffer based on http://python-dev.blogspot.com/2008/06/python-websniffer.html"
+    
+        import httplib
+        import string
+        import os
+        
+        opera = {"User-Agent":"Opera/9.20 (Windows NT 6.0; U; en)", "Accept-Charset":"ISO-8859-1,UTF-8;q=0.7,*;q=0.7", "Cache-Control":"no", "Accept-Language":"de,en;q=0.7,en-us;q=0.3", "Referer":"http://fake_referer.net"}
+        
+        path = '/'
+        method = 'GET'
+        profile = opera
+        #import pdb;pdb.set_trace() 
+        conn = httplib.HTTPSConnection(domain)
+        conn.request(method, path, params, profile)
+        stat = conn.getresponse()
+        headers = stat.getheaders()
+        version = stat.version
+        status = stat.status
+        reason = stat.reason
+        data = stat.read()
+        conn.close()
+        
+        #file_name = domain.replace(".", "-")
+        #file_object = open(file_name, "w")
+        #file_object.write(data)
+        #file_object.close()
+        
+        print "\n"
+        print "WEBSNIFFER 0.1"
+        print "+++++++++++++++++"
+        print "\n"
+        print "Header (Client)"
+        print "-----------------"
+        for key, value in profile.iteritems():
+            print "%s \t %s" % (key, value)
+        print "-----------------"
+        print "\n"
+        print "Header (Server)"
+        print "-----------------"
+        print "HTTP \t %s" % (version)
+        print "Status \t %s (%s)" % (status, reason)
+        for key, value in headers:
+            print "%s \t %s" % (key, value)
+        print "-----------------"
+        print "\n"
+        #print "Quelltext"
+        #print "-----------------"
+        #print "Quelltext geschrieben in File:"
+        #print file_name
+        #print "-----------------"
+        #print "\n"
+
+
+
 InitializeClass(WAeUPTool)
