def testVote(): # prepare the request information # params = {'event_group_id':'710'} headers = dict() headers["Content-type"] ="application/x-www-form-urlencoded" headers["Accept"]= "text/html" voteClient = LANVote(hostname = "www.iarchis.com", port = 80, timeout = 10) voteClient.set_headers(headers) voteClient.add_params( key = 'event_group_id', value = '710') response = voteClient.send_request(request_type = 'POST', request_url = "/index.php?m=event&a=comments_num") del voteClient return response