Re: [python-win32] authentication proxy and download

2010-03-01 Thread Mark Hammond
On 2/03/2010 4:03 AM, Christophe Deze wrote: hello I wrote a windows app that must download file it works fine with urllib.urlretrieve. But I want to download file through a proxy with NTLM (samba)authentication . I want to use windows sessions credential transparently, as IE and Firefox do wel

Re: [python-win32] authentication proxy and download

2010-03-01 Thread Christophe Deze
sorry for the monolog .. :D i'm closed to succeed but how to retrieve transparently user and pwd ? import win32inet hinternet = win32inet.InternetOpen("foo 1.0", 0, "", "", 0) h = win32inet.InternetOpenUrl(hinternet,'http://downloads.sourceforge.net/sevenzip/7z465.msi') win32inet.InternetSetO

Re: [python-win32] authentication proxy and download

2010-03-01 Thread Christophe Deze
it should look like that ??? import win32inet hinternet = win32inet.InternetOpen("foo 1.0", 0, "", "", 0) win32inet.InternetSetOption(INTERNET_OPTION_PROXY_PASSWORD,SizeofOtion) win32inet.InternetSetOption(INTERNET_OPTION_PROXY_USERNAME,SizeofOtion) #h = win32inet.InternetConnect(hinternet,'www.g

[python-win32] authentication proxy and download

2010-03-01 Thread Christophe Deze
hello I wrote a windows app that must download file it works fine with urllib.urlretrieve. But I want to download file through a proxy with NTLM (samba)authentication . I want to use windows sessions credential transparently, as IE and Firefox do well... I don't think that urllib(2) can do