tensor/utils.py
def getBody(self, url, method='GET', headers={}, data=None, socket=None):
        """Make an HTTP request and return the body
        """

        if not 'User-Agent' in headers:
            headers['User-Agent'] = ['Tensor HTTP checker']

        return self.request(url, method, headers, data, socket)
def getBody(self, url, method='GET', headers={}, data=None, socket=None):
        if not 'User-Agent' in headers:
            headers['User-Agent'] = ['Tensor HTTP checker']

        return self.request(url, method, headers, data, socket)
def getBody ( self , url , method = 'GET' , headers = { } , data = None , socket = None ) : if not 'User-Agent' in headers : headers [ 'User-Agent' ] = [ 'Tensor HTTP checker' ] return self . request ( url , method , headers , data , socket )
Make an HTTP request and return the body
Make an HTTP request and return the body