mawrya wrote:
Hello,

I have built a mozilla app that would benefit greatly from FTP Login and Put/Post functionality so that it could transfer files to an FTP server. I noticed that Mozilla Composer does this nicely though I haven't been too successful taking apart the code. Could anyone point me in the right direction -> what ns service do I need to use/call to set up an FTP session and do the transfer. It doesn't need to be fancy.

Thanks. mawyra



there's some sample code here:

http://lxr.mozilla.org/mozilla/source/netwerk/test/TestProtocols.cpp

which shows you how to load any URL using necko (mozilla's networking library). for FTP upload, check out this sample code:

http://lxr.mozilla.org/mozilla/source/netwerk/test/TestUpload.cpp

again, this sample code is not particular to FTP and will work just as well with HTTP PUT.

for more info on necko, see:

http://www.mozilla.org/projects/netlib

for more info on mozilla embedding, see:

http://www.mozilla.org/projects/embedding

and, of course feel free to ask questions! :)

darin

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to