سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top