14.8 FTPing Large Files

In addition to HTTP, the <fetch> and <submit> functions can also access FTP and Gopher sites.

We can send the value of $data to the file destfile on an FTP site with this:

  <submit METHOD=put URL=ftp://ftp.mysite.com/incoming/destfile

With the FROMFILE and TOFILE options, we can transfer data directly to and from a file. This saves the memory overhead of reading large files into memory first:

  <submit METHOD=put URL=ftp://ftp.mysite.com/incoming/destfile

A script could use this to transfer raw bulk data between machines on an automated basis.

Back: Parsing Forms with SANDCALL - Continued Next: Texis Web Server - vhttpd
Copyright © 2024 Thunderstone Software LLC. All rights reserved.