title: Good free FTP Client Library (for Windows C++ commercial apps)?
body: <p>I'm looking for a good open source Windows FTP client library with a public domain or BSD-type license.  Something that I have access to the source code and I can use it from C++ for Windows applications in a commercial app.</p>
  
  <p>We have used Wininet for years and it's buggy and horrible.  The last straw is the IE8 beta 2 contains a new bug in InternetGetLastResponseInfo().  I can no longer justify using Wininet when our users can install the latest version of IE and break our app.</p>
  
  <p>I have looked at libcurl but it is way too heavy for our needs.  The only thing I need is FTP support. I could spend a day stripping out all the code in libcurl I don't need, but I'd rather just start with a nice simple FTP client library, if possible.</p>
  
  <p>I looked at ftplib (<a href="http://nbpfaus.net/~pfau/ftplib/" rel="noreferrer">http://nbpfaus.net/~pfau/ftplib/</a>) but it's GPL and I need this for a closed-source commercial app.</p>
  
  <p>I've written FTP client code before, it's not that hard (unfortunately it was 15 years ago and I don't have the source code anymore).  There must be a nice simple free client library that does nothing but FTP and has a license that can be used in closed-source commercial apps.  </p>
  
  <p>(If you are curious, the bug is that if you attempt to FtpFindFirstFile() with an FTP site where you can't make a passive-mode connection, InternetGetLastResponseInfo() doesn't return the full response.  This is just one of many bugs I've found over the years.  Another is that Wininet's FTP support ignores all timeout values.  That particular bug has existed for years.)</p>