[python-win32] authentication proxy and download

Mark Hammond skippy.hammond at gmail.com
Tue Mar 2 00:59:37 CET 2010


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 well...

Try looking at the pywin32 sample win32\Demos\security\sspi\fetch_url.py 
- it uses NTLM to download stuff directly from the destination server, 
but you may be able to hack it into working with a proxy wanting auth.

HTH,

Mark


More information about the python-win32 mailing list