I'll second Tony on this. I have been using cURL for years whenever I need to send/receive data. The HTTP/HTTPS protocol stuff is especially good because you can manipulate the HTTP headers.

I have a couple FTP routines (for a Windows based system but easily adapted for Unix) using cURL here:

http://www.schasny.com/BP/FTP.SEND
http:/www.schasny.com/BP/FTP.GET

Also, if you are REALLY against writing out a command file,you could put a bunch of commands together on one line using command separators (';' in Unix and '&' in Windows)

Tony Gravagno wrote:
Having written FTP interfaces with MV before (in production use
at end-user sites) my recommendation is that you shift to cURL.

- It's a high quality utility,
- well supported,
- does much more than FTP,
- adapts to Secure FTP without you having yet again go learn a
new utility,
- cross-platform,
- easy to install
- well documented,
- and free.

Because it's cross-platform the only changes to your app code
that are required would be making sure that you have your
directories identified properly with proper slashes, and other
OS-specific details.  But cURL itself, unlike FTP, works exactly
the same on all platforms.

And no, I don't sell it or get a commission for referrals.
*sigh*  ;)

http://curl.haxx.se/

HTH
T

From: George Gallen
Currently I use something like: (Using Universe under Unix)
   CMD="ftp -n <<EOF"
[snip]
   EXECUTE "sh -c '":CMD:"'" CAPTURING JUNK

Is there a way to do this in Windows as well?

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users


--
------------------------------------------------------------------------
Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com
------------------------------------------------------------------------
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to