mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
More layout adjustments
This commit is contained in:
parent
9fcab68700
commit
c5e385f77a
|
@ -105,7 +105,7 @@ def cmdLineParser():
|
||||||
help="Use a HTTP proxy to connect to the target url")
|
help="Use a HTTP proxy to connect to the target url")
|
||||||
|
|
||||||
request.add_option("--proxy-cred", dest="pCred",
|
request.add_option("--proxy-cred", dest="pCred",
|
||||||
help="Proxy authentication credentials "
|
help="HTTP proxy authentication credentials "
|
||||||
"(name:password)")
|
"(name:password)")
|
||||||
|
|
||||||
request.add_option("--ignore-proxy", dest="ignoreProxy", action="store_true",
|
request.add_option("--ignore-proxy", dest="ignoreProxy", action="store_true",
|
||||||
|
|
|
@ -11,8 +11,12 @@ import urllib2
|
||||||
|
|
||||||
|
|
||||||
class MethodRequest(urllib2.Request):
|
class MethodRequest(urllib2.Request):
|
||||||
''' Used to create HEAD/PUT/DELETE/... requests with urllib2 '''
|
'''
|
||||||
|
Used to create HEAD/PUT/DELETE/... requests with urllib2
|
||||||
|
'''
|
||||||
|
|
||||||
def set_method(self, method):
|
def set_method(self, method):
|
||||||
self.method = method.upper()
|
self.method = method.upper()
|
||||||
|
|
||||||
def get_method(self):
|
def get_method(self):
|
||||||
return getattr(self, 'method', urllib2.Request.get_method(self))
|
return getattr(self, 'method', urllib2.Request.get_method(self))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user