我正在尝试从SMB服务器使用libcurl获取目录中的文件列表。但是我有一个错误:
curl -u "DOMAIN\login:password" smb://fs/january/soft
curl: (56) Failure when receiving data from the peer
curl -u "DOMAIN\login:password" smb://fs/january/soft/
curl: (56) Failure when receiving data from the peer
如果我尝试获取文件,那么一切都会好的:
curl -u "DOMAIN\login:password" smb://fs/january/soft/asn1ve.rar > 1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9103k 100 9103k 0 0 4056k 0 0:00:02 0:00:02 --:--:-- 4055k