I need to upload a file on a Sharepoint corporate site using CPython. The existing code base does not allow me to use Ironpython without code porting, therefore the .NET WebClient library is missing. I also want to download the file without asking the user to save and without asking the user for network credentials. I tried other libraries, but all of them had a short circuit:
urllib2 plus python-ntlm : required to provide user / pass- Internet Explorer COM Automation: Requires the user to click the Save button
subprocess using wget or cURL : failed to authenticate without user / password request
I could not find anything in pywin32 , it looks like it connects to urllib2 or provides equivalent functionality. So, is there a way to download a file without asking for credentials and without asking the user to click "Save"?
python curl winapi pywin32
technomalogical
source share