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).content
  6. #print r.text
  7. return strip(r)
  8.