Python3 using requests to grab HTTP Auth Data
Νίκος Βέργος
me.on.nzt at gmail.com
Wed Feb 1 10:10:39 EST 2017
More information about the Python-list mailing list
Wed Feb 1 10:10:39 EST 2017
- Previous message (by thread): doubt loading pages
- Next message (by thread): Python3 using requests to grab HTTP Auth Data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
# Give user the file requested url = "http://superhost.gr/data/files/%s" % realfile user, password = 'user', 'passwd' r = requests.get( url, auth = (user, password) ) # send auth unconditionally r.raise_for_status() ========================== How can i ASK the user for http auth data and store them isntead of giving them to the script?
- Previous message (by thread): doubt loading pages
- Next message (by thread): Python3 using requests to grab HTTP Auth Data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list