Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2016
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
  2. requests.exceptions.TooManyRedirects: Exceeded 30 redirects
  3.  
  4. sf = Salesforce(username='zzzz@yyy.com', password='zzzz', security_token='yyy')
  5.  
  6. response = requests.get("https://c.na26.content.force.com/servlet/servlet.FileDownload?file=00P3200000oOw0C", headers = sf.headers, cookies = {'sid' : sf.session_id})
  7.  
  8. print response.content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement