Re: ftp upload question....

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 21 Aug 1999 00:22:21 +0200

Joseph Lin wrote:

> I am wondering whether or not I could upload a file through
> the squid proxy server via ftp protocol? It is possible to upload
> a file through the proxy server via http protocol but not sure
> if that is doable via ftp protocol? If this is doable, could someone
> please tell me what the request would look alike?
>
> PUT ftp://anonymous:abc@www.sun.com ??????? HTTP/1.0 or???

Yes, of course you can ;-)

Squid translates HTTP PUT to FTP STOR for ftp URLs.

Syntax for PUT is defined in RFC2616.

In short: like any other HTTP message with content...

PUT ftp://anonymous:abc@www.sun.com/path/to/file.txt HTTP/1.0
Content-Length: 10845

[here is 10845 octets of data to be stored in /path/to/file.txt on
www.sun.com]

--
Henrik Nordstrom
Spare time Squid hacker
Received on Tue Jul 29 2003 - 13:16:00 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:17 MST