mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
Proper HTTP version display
This commit is contained in:
parent
f3cc41601c
commit
46be570463
|
@ -8,6 +8,7 @@ See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import cookielib
|
import cookielib
|
||||||
|
import httplib
|
||||||
import re
|
import re
|
||||||
import socket
|
import socket
|
||||||
import urllib2
|
import urllib2
|
||||||
|
@ -96,9 +97,8 @@ class Google:
|
||||||
try:
|
try:
|
||||||
conn = self.opener.open(url)
|
conn = self.opener.open(url)
|
||||||
|
|
||||||
requestMsg = "HTTP request:\nGET %s HTTP/1.1\n" % url
|
requestMsg = "HTTP request:\nGET %s" % url
|
||||||
requestMsg += "\n".join(["%s: %s" % (header, value) for header, value in conn.headers.items()])
|
requestMsg += " %s" % httplib.HTTPConnection._http_vsn_str
|
||||||
requestMsg += "\n"
|
|
||||||
logger.log(9, requestMsg)
|
logger.log(9, requestMsg)
|
||||||
|
|
||||||
page = conn.read()
|
page = conn.read()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user