[Ilugc] Beautiful way to upload a file using curl and FTP

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Mon May 31 21:16:39 2010

$ curl -T - ftp://ftpserver.somewhere.org/path/to/file.txt
<middle click with your mouse>
  Press enter or Ctrl-D or Ctrl-C

The file gets uploaded from stdin. Or even redirect like this.

$ curl -T - ftp://1.1.3.4/foo.txt ;< foo.txt

Of course this would work for HTTP GET or POST also but that would be
not very easy as FTP.

I have not tried it at least.

WebDAV aimed to making HTTP read/write but I don't think it was a big hit...

FTP still continues to rule the roost.

And we have many tools for that. curl, wget, lftp, ncftp and so on.

-Girish

-- 
Gayatri Hitech
web: http://gayatri-hitech.com

SpamCheetah Spam filter:
http://spam-cheetah.com

Other related posts:

  • » [Ilugc] Beautiful way to upload a file using curl and FTP - Girish Venkatachalam