urllib url后面传长数据

用给自己记录用

def monitor_work_1(content):

        dict_1={'service':'rdc_monitor','checkpoint':'rdc_monitor_log','title':content,'content':content,'cluster':'public','grade':'2'}

        params = urllib.urlencode(dict_1)

        urllib.urlopen('http://alert.sae.sina.com.cn/new/',params)


你可能感兴趣的:(service,记录,public,title,content)