質問

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