spacepaste

  1.  
  2. def getInfo():
  3. s = requests.Session()
  4. s.auth = ('', 'lua') # Username is blank, just provide the password
  5. r = s.get('http://localhost:8080/requests/status.xml', verify=False)
  6. print r.text
  7. return r
  8. sXML = getInfo()
  9. print sXML.text
  10.