Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- domain = 'localhost:8000'
- user = 'username'
- password = 'password'
- data = 'some data to be sent'
- r = requests.post(domain, data auth=(user,password))
- raise InvalidSchema("No connection adapters were found for '%s'" % url)
- requests.exceptions.InvalidSchema: No connection adapters were found for 'localhost:8000'
- domain = 'http://localhost:8000'
Add Comment
Please, Sign In to add comment