def getResponse(url, headers, size):
    try:
        if size > 0:
            size = int(size)
            headers['Range'] = 'bytes=%d-' % size

        req = urllib2.Request(url, headers=headers)

        resp = urllib2.urlopen(req, timeout=30)
        return resp
    except:
        return None
dataset/ETHPy150Open mrknow/filmkodi/plugin.video.specto/resources/lib/libraries/simpledownloader.py/getResponse/original