Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def http_get_contents(url):
        return urllib2.urlopen(url).read()
    except urllib2.HTTPError, e:
        msg_404 = "If you're looking for a directory, did you add 'dir:' before the directory name?"

        if ("404" in e.__str__()):
            exit_runtime_error("The file wasn't found! (404).", msg_404)
        exit_runtime_error(e.__str__(), "Requested URL: %s" % url)

src/g/r/grabrc-client-0.5/client/downloader.py   grabrc-client(Download)
    logging.debug("FILE_URL: %s" % FILE_URL)
    contents = util.http_get_contents(FILE_URL)
    if options.stdout: