

def get_page(url, data=None, logfile=None, cookiefile=None, retries=1, filename=None, **kwargs):
    'Simple page fetcher using the HTTPRequest.\n\n    Args::\n\n        url         : A string or UniversalResourceLocator object.\n        data        : Dictionary of POST data (of not provided a GET is performed).\n        logfile     : A file-like object to write the transaction to.\n        cookiefile  : Update cookies in this file, if provided.\n        retries     : Number of times to retry the transaction.\n        filename    : Name of file to write target object directly to.\n                      The doc and body attributes will not be available in the\n                      response if this is given.\n\n    Extra keyword arguments are passed to the HTTPRequest object.\n\n    Returns::\n        an HTTPResponse object.\n    '
    request = HTTPRequest(url, data, **kwargs)
    return request.perform(logfile, cookiefile, retries, filename)

dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/client.py get_page/original