def curl(self):
        """
        This will generate a curl equivalent call
        :return: str
        """
        ret = 'curl -X %s ' % self.method
        ret += self.url
        if self.request_data:
            ret += " -d '%s'" % json.dumps(self.request_data)
        if self.headers:
            ret += ''.join(
                [' -H "%s: %s"' % (k, v) for k, v in self.headers.items()])
        if self.cookies:
            ret += ' --cookie "%s"' % (
                '&'.join(['%s=%s' % (k, v) for k, v in self.cookies.items()]),)
        return ret
def curl ( self ) : ret = 'curl -X %s ' % self . method ret += self . url if self . request_data : ret += " -d '%s'" % json . dumps ( self . request_data ) if self . headers : ret += '' . join ( [ ' -H "%s: %s"' % ( k , v ) for k , v in self . headers . items ( ) ] ) if self . cookies : ret += ' --cookie "%s"' % ( '&' . join ( [ '%s=%s' % ( k , v ) for k , v in self . cookies . items ( ) ] ) , ) return ret
This will generate a curl equivalent call
        :return: str