owtf_extensions/wafbypasser/core/http_helper.py
def create_http_request(self, method, url, body=None, headers={},
                            payload=None):
        """This function creates an HTTP request with some additional
         initializations"""

        request = copy(self.init_request)
        request.method = method
        request.url = url
        request.headers = headers
        if body:
            request.body = body
            if headers and not "Content-Length" in request.headers:
                #request.headers["Content-Length"] = len(body)
                pass
            if method.upper() not in "POST":
                if "Content-Length" in headers:
                    headers.pop("Content-Length")

        request.start_time = time()
        if payload:
            self.payload_table[id(request)] = payload
        return request
This function creates an HTTP request with some additional
         initializations
This function creates an HTTP request with some additional
initializations
This function creates an HTTP request with some additional initializations
def create_http_request(self, method, url, body=None, headers={},
                            payload=None):
        request = copy(self.init_request)
        request.method = method
        request.url = url
        request.headers = headers
        if body:
            request.body = body
            if headers and not "Content-Length" in request.headers:
                pass
            if method.upper() not in "POST":
                if "Content-Length" in headers:
                    headers.pop("Content-Length")
        request.start_time = time()
        if payload:
            self.payload_table[id(request)] = payload
        return request
def create_http_request ( self , method , url , body = None , headers = { } , payload = None ) : request = copy ( self . init_request ) request . method = method request . url = url request . headers = headers if body : request . body = body if headers and not "Content-Length" in request . headers : pass if method . upper ( ) not in "POST" : if "Content-Length" in headers : headers . pop ( "Content-Length" ) request . start_time = time ( ) if payload : self . payload_table [ id ( request ) ] = payload return request
This function creates an HTTP request with some additional
initializations
This function creates an HTTP request with some additional initializations
"""This function creates an HTTP request with some additional
         initializations""" #request.headers["Content-Length"] = len(body)
self
method
url
body
headers
payload