def _fetch_remote_file(service_url, params=None, use_http_post=False):
if not params:<EOL><INDENT>params = {}<EOL><DEDENT>request_url, response = _fetch_remote(service_url, params, use_http_post)<EOL>dummy, params = cgi.parse_header(<EOL>response.headers.get('<STR_LIT>', '<STR_LIT>'))<EOL>fn = params['<STR_LIT:filename>']<EOL>return (response.headers.get('<STR_LIT>'),<EOL>fn, response.read(), response.geturl())<EOL>
Retrieves a file from a URL.

    Returns a tuple (mimetype, filename, data)