import requests r = requests.get("http://localhost:9000/requests/status.xml", params={'command': 'rate', 'val': '2.0'}, auth=('', 'foo')) print r