[9938] in www-talk@info.cern.ch
PUT and FTP?
daemon@ATHENA.MIT.EDU (Gregory Holmberg)
Thu Apr 25 22:35:33 1996
From: "Gregory Holmberg" <holmberg@frame.com>
Date: Thu, 25 Apr 1996 19:36:24 -0700
Reply-To: holmberg@adobe.com
To: www-talk@w3.org
Resent-From: www-talk@w3.org
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?