def send_request(url, header, is_fake_ip):
    global IS_FAKE_IP
    data = ''
    if IS_FAKE_IP == 1:
        header['X-Forwarded-For'] = FAKE_IP
        header['Client-IP'] = FAKE_IP
        header['X-Real-IP'] = FAKE_IP
    try:
        #logging.debug(header)
        request = urllib2.Request(url, headers=header)
        response = urllib2.urlopen(request)
        data = response.read()
    except urllib2.HTTPError:
        logging.info('ERROR!')
        return ''
    if response.info().get('Content-Encoding') == 'gzip':
        buf = StringIO(response.read())
        f = gzip.GzipFile(fileobj=buf)
        data = f.read()
    #except Exception:
        #raise URLOpenException('Cannot open URL! Raw output:\n\n{output}'.format(output = command_result[1]))
    #print(request.headers)
    logging.debug(data)
    return data

#----------------------------------------------------------------------
str,dict,int->str
dataset/ETHPy150Open cnbeining/Biligrab/biligrab.py/send_request