PUT and FTP?

What would it take to get PUT and FTP to work?

	w3c -dest ftp://host/file -put file

I want this in case the Web server the user is connected to
doesn't support HTTP PUT (as the two most popular servers currently,
NCSA and Apache, don't).

Looking at the code in HTFTP, I notice that in HTFTPGetData(),
in state NEED_ACTION, the FTP command is assumed to be RETR.
I've looked at RFC959, and I think I could add some code to
send the STOR command to put the file, but I'm not sure how
to hook it all up.  I tried looking at HTLoadHTTP() for
comparison, and I think it has something to do with checking
HTRequest_isDestination(), and using FD_READ and HTEvent_Register(),
but frankly, I'm confused by this code.

Can someone give me a clue?

Received on Thursday, 25 April 1996 22:32:08 UTC