Python httplib2, AttributeError: 'set' object has no attribute 'items'
I'm playing with the Python library httplib2 . The following is my code. import urllib.parse import httplib2 httplib2.debuglevel = 1 http = httplib2.Http() url = "http://login.sina.com.cn/hd/signin.php" body = {"act": "1", "entry": "vblog", "password": "P@$sW0rd", "reference": "http://vupload.you.video.sina.com.cn/u.php?m=1&cate=0", "reg_entry": "vblog", "remLoginName": "on", "username": "this_is_user_name", "x": "", "y": ""} headers = {"Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Accept-Encoding", "gzip