From Python, I would like to get content from a website via HTTPS with basic authentication. I need content on disk. I am on an intranet trusting an HTTPS server. Python 2.6.2 platform for Windows.
I played with urllib2 but failed so far.
I have a solution calling wget via os.system ():
wget_cmd = r'\path\to\wget.exe -q -e "https_proxy = http://fqdn.to.proxy:port" --no-check-certificate --http-user="username" --http-password="password" -O path\to\output https://fqdn.to.site/content'
I would like to get rid of os.system (). Is this possible in Python?
Bernd source
share