import sys import urllib import md5 def run(client, session, server, args): header = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain", "Cookie": "RS_API=" + str(session)} client.request("GET", "/api/hello"); response = client.getresponse() print "HTTP Status/Reason: " + str(response.status) + " / " + response.reason print "Response header: " + str(response.getheaders()) print "Response:" print response.read()