Adam Craig wrote: > > In short, just forget about what has actually arrived at the server > > and pretend libssh2_sftp_write is telling the truth. > > Thank you. That makes sense. I will do as you suggest. This would > be a good thing to explain in the documentation for the function.
I do not understand why anyone would want to do anything else. > That still does not explain why the file downloads in 2K chunks, > but that might have something to do with the server. I will try > a different server-side program as soon as I can set up one. You will find it difficult to find many other SFTP servers than OpenSSH, but it's not a bad idea to try some different versions. The newer the better, of course. Also, you can build libssh2 with debug logging, and call libssh2_trace(session, ~0); in order to get lots of debug output, which among other things will show exactly what the server is sending. //Peter _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel