Guest User

Untitled

a guest
Nov 22nd, 2017
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. domain = 'localhost:8000'
  2. user = 'username'
  3. password = 'password'
  4. data = 'some data to be sent'
  5. r = requests.post(domain, data auth=(user,password))
  6.  
  7. raise InvalidSchema("No connection adapters were found for '%s'" % url)
  8. requests.exceptions.InvalidSchema: No connection adapters were found for 'localhost:8000'
  9.  
  10. domain = 'http://localhost:8000'
Add Comment
Please, Sign In to add comment