¡@

Home 

python Programming Glossary: trim_api_url

Python urllib2, basic HTTP authentication, and tr.im

http://stackoverflow.com/questions/635113/python-urllib2-basic-http-authentication-and-tr-im

reading http docs.python.org library urllib2.html I tried TRIM_API_URL 'http api.tr.im api' auth_handler urllib2.HTTPBasicAuthHandler.. auth_handler.add_password realm 'tr.im' uri TRIM_API_URL user USERNAME passwd PASSWORD opener urllib2.build_opener.. opener response urllib2.urlopen ' s trim_simple url s' TRIM_API_URL url_to_trim url response.read .strip response.code is 200 I..