(self)
Submits information to a web site being used as a resource that
        requires a post of information. Submits via proxy if --proxy
        option was chosen during execution of the Automater.
        Returns a string that contains entire web site being used as a
        resource including HTML markup information.

        Argument(s):
        raw_params -- string info detailing parameters provided from
        xml configuration file in the params XML tag.
        headers -- string info detailing headers provided from
        xml configuration file in the headers XML tag.

        Return value(s):
        string -- contains entire web site being used as a
        resource including HTML markup information.

        Restriction(s):
        The Method has no restrictions.
Submits information to a web site being used as a resource that
        requires a post of information. Submits via proxy if --proxy
        option was chosen during execution of the Automater.
        Returns a string that contains entire web site being used as a
        resource including HTML markup information.
Submits information to a web site being used as a resource that requires a post of information . Submits via proxy if -- proxy option was chosen during execution of the Automater . Returns a string that contains entire web site being used as a resource including HTML markup information .
def submitPost(self):
        """
        Submits information to a web site being used as a resource that
        requires a post of information. Submits via proxy if --proxy
        option was chosen during execution of the Automater.
        Returns a string that contains entire web site being used as a
        resource including HTML markup information.

        Argument(s):
        raw_params -- string info detailing parameters provided from
        xml configuration file in the params XML tag.
        headers -- string info detailing headers provided from
        xml configuration file in the headers XML tag.

        Return value(s):
        string -- contains entire web site being used as a
        resource including HTML markup information.

        Restriction(s):
        The Method has no restrictions.
        """
        headers, params, proxy = self.getHeaderParamProxyInfo()
        try:
            resp = requests.post(self.FullURL, data=self.PostData, headers=headers, params=params, proxies=proxy, verify=False)
            return str(resp.content)
        except ConnectionError as ce:
            try:
                self.postErrorMessage('[-] Cannot connect to {url}. Server response is {resp} Server error code is {code}'.
                                      format(url=self.FullURL, resp=ce.message[0], code=ce.message[1][0]))
            except:
                self.postErrorMessage('[-] Cannot connect to ' + self.FullURL)
        except:
            self.postErrorMessage('[-] Cannot connect to ' + self.FullURL)
def submitPost ( self ) : headers , params , proxy = self . getHeaderParamProxyInfo ( ) try : resp = requests . post ( self . FullURL , data = self . PostData , headers = headers , params = params , proxies = proxy , verify = False ) return str ( resp . content ) except ConnectionError as ce : try : self . postErrorMessage ( '[-] Cannot connect to {url}. Server response is {resp} Server error code is {code}' . format ( url = self . FullURL , resp = ce . message [ 0 ] , code = ce . message [ 1 ] [ 0 ] ) ) except : self . postErrorMessage ( '[-] Cannot connect to ' + self . FullURL ) except : self . postErrorMessage ( '[-] Cannot connect to ' + self . FullURL )