The title says it all, even if it is a mouthful!
I need to download a file on a corporate Sharepoint site using CPython. Existing codebase prevents me from using Ironpython without porting the code, so .NET's WebClient
library is out. I also want to download the file without prompting the user to save and without prompting the user for network credentials. I tried other libraries, but they all had short-comings:
urllib2
pluspython-ntlm
: requires user/pass to be provided- COM automation of Internet Explorer: requires the user to click 'Save'
subprocess
usingwget
orcURL
: couldn't get either to authenticate without requesting user/pass
I couldn't find anything in pywin32
that looks like it hooks into urllib2 or provides equivalent functionality. So, is there a way to download the file without requesting credentials and without prompting the user to click 'Save'?