gpt4 book ai didi

python - 如何将 samba 与 pycurl 一起使用?

转载 作者:太空宇宙 更新时间:2023-11-03 18:35:30 25 4
gpt4 key购买 nike

我有以下代码:

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

如何使用类似的代码来处理 SMB 协议(protocol)?

最佳答案

看看here ,将 CURLOPT_HTTPAUTH 选项设置为值 CURLAUTH_NTLM。如果这不起作用,请尝试 pysmb .

关于python - 如何将 samba 与 pycurl 一起使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21659375/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com