Сейчас записал дамп обмена 'Total Commander' с 'squid'. 'Total Commander' для работы с 'squid' использует метод 'HTTP-прокси с поддержкой FTP'.
Был очень удивлен
, оказывается все запросы к FTP через HTTP-прокси имеют такойже вид как запросы к обычному HTTP.
Запрос списка файлов корневой дерикторииGET ftp://name:passwd@ftp.narod.ru/ HTTP/1.0
Host: ftp.narod.ru
User-Agent: Mozilla/4.0 (compatible; Totalcmd; Windows XP)
Connection: close
HTTP/1.0 200 Gatewaying
Server: squid/2.7.STABLE4
Date: Wed, 05 Nov 2008 17:52:48 GMT
Content-Type: text/html
Age: 6106
Content-Length: 6508
X-Cache: HIT from server.local.net
Via: 1.0 server.local.net:3128 (squid/2.7.STABLE4)
Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- HTML listing generated by Squid 2.7.STABLE4 -->
<!-- Wed, 05 Nov 2008 17:52:48 GMT -->
<HTML><HEAD><TITLE>
FTP Directory: ftp://name@ftp.narod.ru/
</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}--></STYLE>
</HEAD><BODY>
<H2>
FTP Directory: <A HREF="/">ftp://name@ftp.narod.ru</A>/</H2>
<PRE>
<A HREF="readme.txt"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-text.gif" ALT="[FILE]"></A> <A HREF="readme.txt">readme.txt</A> . . . . . . . . . . . May 29 2006 55 <A HREF="readme.txt;type=i"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-box.gif" ALT="[DOWNLOAD]"></A>
<A HREF="ganga.html"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-text.gif" ALT="[FILE]"></A> <A HREF="ganga.html">ganga.html</A> . . . . . . . . . . . May 29 2006 1741 <A HREF="ganga.html;type=a"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-text.gif" ALT="[VIEW]"></A> <A HREF="ganga.html;type=i"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-box.gif" ALT="[DOWNLOAD]"></A>
<A HREF="gbook.bk"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-unknown.gif" ALT="[FILE]"></A> <A HREF="gbook.bk">gbook.bk</A> . . . . . . . . . . . . May 29 2006 3361 <A HREF="gbook.bk;type=a"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-text.gif" ALT="[VIEW]"></A> <A HREF="gbook.bk;type=i"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-box.gif" ALT="[DOWNLOAD]"></A>
<A HREF="gmes.bk"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-unknown.gif" ALT="[FILE]"></A> <A HREF="gmes.bk">gmes.bk</A>. . . . . . . . . . . . . May 29 2006 334 <A HREF="gmes.bk;type=a"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-text.gif" ALT="[VIEW]"></A> <A HREF="gmes.bk;type=i"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-box.gif" ALT="[DOWNLOAD]"></A>
<A HREF="resource.html"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-text.gif" ALT="[FILE]"></A> <A HREF="resource.html">resource.html</A>. . . . . . . . . . Feb 22 2008 4377 <A HREF="resource.html;type=a"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-text.gif" ALT="[VIEW]"></A> <A HREF="resource.html;type=i"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-box.gif" ALT="[DOWNLOAD]"></A>
<A HREF="batty/"><IMG border="0" SRC="http://server.local.net:3128/squid-internal-static/icons/anthony-dir.gif" ALT="[DIR] "></A> <A HREF="batty/">batty</A>. . . . . . . . . . . . . . Aug 06 11:49
</PRE>
<HR noshade size="1px">
<ADDRESS>
Generated Wed, 05 Nov 2008 17:52:48 GMT by server.local.net (squid/2.7.STABLE4)
</ADDRESS></BODY></HTML>
Получение файла robots.txtGET ftp://name:passwd@ftp.narod.ru/robots.txt HTTP/1.0
Host: ftp.narod.ru
User-Agent: Mozilla/4.0 (compatible; Totalcmd; Windows XP)
Connection: close
HTTP/1.0 200 Gatewaying
Server: squid/2.7.STABLE4
Date: Wed, 05 Nov 2008 18:58:27 GMT
Content-Type: text/plain
Last-Modified: Mon, 29 May 2006 04:04:56 GMT
Age: 2183
Content-Length: 57
X-Cache: HIT from server.local.net
Via: 1.0 server.local.net:3128 (squid/2.7.STABLE4)
Connection: close
User-agent: *
Disallow: /download
Disallow: /image
А вот тут уже облом. Удаление файла robots.txtDELETE ftp://name:passwd@ftp.narod.ru/robots.txt HTTP/1.0
Host: ftp.narod.ru
User-Agent: Mozilla/4.0 (compatible; Totalcmd; Windows XP)
Connection: close
HTTP/1.0 501 Not Implemented
Server: squid/2.7.STABLE4
Date: Wed, 05 Nov 2008 19:34:55 GMT
Content-Type: text/html
Content-Length: 1075
Expires: Wed, 05 Nov 2008 19:34:55 GMT
X-Squid-Error: ERR_UNSUP_REQ 0
X-Cache: MISS from server.local.net
Via: 1.0 server.local.net:3128 (squid/2.7.STABLE4)
Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="ftp://name@ftp.narod.ru/robots.txt">ftp://name@ftp.narod.ru/robots.txt</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Unsupported Request Method and Protocol
</STRONG>
</UL>
<P>
Squid does not support all request methods for all access protocols.
For example, you can not POST a Gopher request.
<P>Your cache administrator is <A HREF="mailto:webmaster">webmaster</A>.
<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Wed, 05 Nov 2008 19:34:55 GMT by server.local.net (squid/2.7.STABLE4)
</ADDRESS>
</BODY></HTML>