title: How to get list of files in directory smb libcurl?
body: <p>I'm trying to get a list of files in the directory with libcurl from the SMB server. But I have a error:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>If I try to get the file then everything will be okay:</p>
  
  <pre><code>curl -u "DOMAIN\login:password" smb://fs/january/soft/asn1ve.rar &gt; 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
  </code></pre>