FTP directory upload behind a proxy (Squid) problem

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
polo23
Junior Member
Junior Member
Posts: 7
Joined: 2004-10-15, 10:38 UTC
Location: Paris

FTP directory upload behind a proxy (Squid) problem

Post by *polo23 »

Hi,

I am able to connect to a ftp server behind a squid2.5 proxy, with authentication. Btw, the ftp server needs authentication too.
I am able to upload files, and download files.
(and the PUT and GET are traced on the proxy)

Here is the problem :
When I try to create a new dir on the FTP server, nothing happens.
Nothing is traced on the the proxy neither.
(BTw I have the same problem if I try to upload a file on a non-existent directory - likewise to force the creation of that directory)

This seems to work if I use a local FTP server.

Who can help me ?
Could There be a problem, when trying to create a directory, using HTTP authentication to get through the proxy ?

Thank You,

Aldo.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Maybe this could help you.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
polo23
Junior Member
Junior Member
Posts: 7
Joined: 2004-10-15, 10:38 UTC
Location: Paris

Post by *polo23 »

Thank You ,


Very useful link.

Using HTTP :
- no deletion of files
- no creation of directories.

Does that mean that TC won't event try to create à Directory ?
(It seems so, because nothing is traced in the proxy logs).

On the Squid side, The proxy claims to be able to create directories : see here

Do you believe it possible to add this functionality to TC ? (if it isn't yet implemented ?)


Thanks,

Aldo
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Did you try the way that is described in the article yuo linked me to?
Just adding a foldername while copying the file in TC FTP copy dialog?

I don't know what is squid - maybe a special FTP server software? You can send a request to support@ghisler.com to know if this is possible.

I could only remember the post, personally I don't know much 'bout FTP.

sheepdog
Last edited by Sheepdog on 2004-10-18, 15:28 UTC, edited 1 time in total.
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

I don't know what is squid - maybe a special FTP server software?
Squid is a Linux proxy server - http://www.squid-cache.org/ .
Replace "service" with "support".
BTW: My respect to Sheepdog for inventing a new way to avoid spam.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
polo23
Junior Member
Junior Member
Posts: 7
Joined: 2004-10-15, 10:38 UTC
Location: Paris

Post by *polo23 »

I tried the suggested method . But it didn't work for me.

Squid is an opensource HTTP proxy server. "The" Open Proxy Server.
www.squid-cache.org

Thanks , that post you could remember was "spot on".

Aldo,

PS: Hacker was quicker than me to click on on the Submit button.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Hacker wrote:Replace "service" with "support".
I corrected it.
BTW: My respect to Sheepdog for inventing a new way to avoid spam.
I'm surprised how you always come to know the hidden intensions of us. :lol: ;) :P

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

:P
I corrected it.
That was actually meant for polo23... :)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

To my knowledge, there is no HTTP command to create new folders, just a WebDAV command (which is based on HTTP), but FTP over HTTP proxies have never supported it.

Btw, can you delete files? TC tries to send the command, but I haven't yet found a proxy which supports it.
Author of Total Commander
https://www.ghisler.com
polo23
Junior Member
Junior Member
Posts: 7
Joined: 2004-10-15, 10:38 UTC
Location: Paris

Post by *polo23 »

About the folder creation :
the Squid proxy seems to support it. (see previous link to squid-cache.org discussion list)
I 'll go and ask how it is implemented.


About the file deletion :
the Squid proxy doesn't implement it yet :
TC log :
DELETE ftp://ftpsite.com/DBConnectEnd.asp HTTP/1.0
Host: ftpsite.com
User-Agent: Mozilla/4.0 (compatible; Totalcmd; Windows 2000)
Proxy-Authorization: **************************
Connection: close

HTTP/1.0 501 Not Implemented



proxy log :
TCP_DENIED/501 1474 DELETE ftp://ftpsite.com/DBConnectEnd.asp - NONE/- text/html

I'll also ask if this implementation is planned.

PS : should I still post to support ? I bet not (?)
polo23
Junior Member
Junior Member
Posts: 7
Joined: 2004-10-15, 10:38 UTC
Location: Paris

Post by *polo23 »

Some first answers from Squid Developpers:

"
> # folder creation
>
Squid automatically creates folders as needed on PUT.

If there is PUT to a explicit directory name (ftp://.../some/directory;type=d)
Squid just creates the directory I think.


> # file deletion
>
No one has needed this to the level that they have bothered to submit a
patch implementing the DELETE HTTP method mapping it to the DELE/RMD FTP
methods (RMD if traling slash).

"


I understand that folder creation should be transparent to TC.
As no query is submitted to the proxy in such a case, (and I'm only guessing here) I think TC maybe verifies that all folders exist before PUTting a file in that directory ?
What do you think ?


I'm no developper myself, so I won' t be able to implement a patch on Squid myself. I'll ask people around me.
What do you think ?


Cheers,
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed TC checks whether the dirs exist, and if not, it tries to create them. This fails, so TC doesn't even try co upload files in subdirs. It's new to me that directory creation would work this way.
Author of Total Commander
https://www.ghisler.com
polo23
Junior Member
Junior Member
Posts: 7
Joined: 2004-10-15, 10:38 UTC
Location: Paris

Post by *polo23 »

TC doesn't send files in non-existent subdir : OK
but TC could try to "send" those dirs, and the proxy would convert it into folder creation. But as I mentioned, I see no attempt logged at the proxy level.


I would like this to work. I'm willing to help. I could do testing if you like, as I have full access to the proxy server. Squid is very popular, this could be useful to others, I think.
polo23
Junior Member
Junior Member
Posts: 7
Joined: 2004-10-15, 10:38 UTC
Location: Paris

Post by *polo23 »

Hi,


What's the next step to make this work ?



polo23
Post Reply