FTP directory upload behind a proxy (Squid) problem
Moderators: Hacker, petermad, Stefan2, white
FTP directory upload behind a proxy (Squid) problem
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.
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.
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
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
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
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Squid is a Linux proxy server - http://www.squid-cache.org/ .I don't know what is squid - maybe a special FTP server software?
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.
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.
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.
I corrected it.Hacker wrote:Replace "service" with "support".
I'm surprised how you always come to know the hidden intensions of us.BTW: My respect to Sheepdog for inventing a new way to avoid spam.



sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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.
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
https://www.ghisler.com
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 (?)
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 (?)
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,
"
> # 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,
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
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.
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.