mån 2006-02-20 klockan 15:15 +0100 skrev Eugen Kraynovych: > Does anybody here have a full list of FTP commands, which SQUID 2.5 can > (for instance 2.5Stable12; PUT, GET, DELE etc.)? The same for SQUID 3? Squid acts as a HTTP->FTP gateway on requests for ftp:// URLS. The currently supported HTTP methods on ftp:// URLs are: GET PUT HEAD which gets translated to suitable FTP commands by Squid as per the guidelines outlined for ftp:// URLs in RFC1738 section 3.2. GET is used both for file retreival and directory listings. Binary and Ascii file retreival is supported. If no explicit format is requested Squid guesses using it's mime.conf table which tells Squid both the ftp transfer mode to use and content-type to assign to the reply. Explicit requests for ascii or binary uses text/plain or application/octet-stream respectively for the content-type. Directory listings uses LIST or NLST depending on the format type specifier in the URL. Requests without an explicit format uses LIST, while explicit requests for directory format uses NLST. PUT in addition to storing files using STOR it also automatically creates directories with MKD if needed. Or only creates directories if the URL ends in / and the content-length is 0. If the URL ends in / and content-length > 0 then STOU is used instead of STOR allowing the FTP server to assign a suitable file name to the uploaded content. GET uses REST is the request is a range for the remainder of the file. Support could be added for more HTTP methods such as DELETE mapped to DELE/RMD but nobody has shown any interest in this. Regards Henrik
Attachment:
signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel