Question

I have the following code:

crl = pycurl.Curl()
crl.setopt(pycurl.USERPWD, 'user:pass')
crl.setopt(pycurl.URL, 'url')
crl.setopt(pycurl.VERBOSE, 1)
crl.perform()

How can I use a similar code to work with SMB protocol?

Was it helpful?

Solution

Take a look here, set CURLOPT_HTTPAUTH option to value CURLAUTH_NTLM. If this doesn't work try pysmb.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top