Pythonã®æ¨æºã¢ã¸ã¥ã¼ã«urllib2ã使ã£ã¦HTTP ã¯ã©ã¤ã¢ã³ããä½ã£ã¦ã¿ãã(5) - Basic èªè¨¼ç·¨ -ã®ä¾é¡ãã¼ã¸ã«æ¥ç¶ããå®é¨ãã»ã¨ãã©ããã®åãã ããä¸é¨å¤æ´ããªãã¨èªè¨¼ããã¾ããããªãã£ãã import urllib2 toplevelurl='x68000.q-e-d.net' theurl='x68000.q-e-d.net/~68user/net/sample/http-auth/secret.html' protocol='http://' username='hoge' password='fuga' passman = urllib2.HTTPPasswordMgrWithDefaultRealm() passman.add_password(None, toplevelurl, username, password) authhandler = ur
{{#tags}}- {{label}}
{{/tags}}