Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

From the log you have emailed me, it seems that FileZilla is having the same issue as WinSCP, right?

In FileZilla and WinSCP, I can see that you are using TLS/SSL encryption.

But with Total Command you do not seem to use encryption. Cannot it be the difference?
martin

The Total Commander does not seem to log everything.
Can you try e.g. FileZilla?

Also what is the "0.0.0.0"? Is this actual log contents, or did you obfuscate the IP address?

I do not think this has anything to do with headers. You would not be able to connect at all otherwise.

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum. It logs some more details.
codrinh

totalcmd - HTTP Proxy with FTP support

Get directory

----------
Connect to: (03/04/2017 14:06:54)
hostname=******
username=sup
password=******
Firewall=proxy.******.com
proxy.******.com=0.0.0.0
Connect
GET ftp://sup:@******.com/ HTTP/1.0
Host: ******.com
User-Agent: Mozilla/4.0 (compatible; Totalcmd; Windows 8)
Connection: close

HTTP/1.1 200 OK
Copied (03/04/2017 14:06:54): http://******.com/ -> C:\Users\****\AppData\Local\Temp\9\FTP249F.tmp 2,588 bytes, 81 kbytes/s
BG:Copied (03/04/2017 14:07:12): http://******.com/ -> C:\Users\****\AppData\Local\Temp\9\FTP691C.tmp 2,588 bytes, 81 kbytes/s
BG:Copied (03/04/2017 14:07:12): http://******.com/.htaccess -> c:\Utils\.htaccess 572 bytes
OFFLINE


totalcmd - HTTP Connect

Connect to: (03/04/2017 14:09:29)

hostname=******.com
username=sup
startdir=
Firewall=proxy.******.com
proxy.******.com=0.0.0.0
CONNECT ******.com:21 HTTP/1.1
Host: ******.com:21

HTTP/1.1 200 Connection established
220 Microsoft FTP Service
USER sup
331 Password required
PASS ***********
230 User logged in.
SYST
215 Windows_NT
FEAT
211-Extended features supported:
 LANG EN*
 UTF8
 AUTH TLS;TLS-C;SSL;TLS-P;
 PBSZ
 PROT C;P;
 CCC
 HOST
 SIZE
 MDTM
 REST STREAM
211 END
HELP SITE
214 Syntax: SITE - (site-specific commands)
OPTS UTF8 ON
200 OPTS UTF8 command successful - UTF8 encoding now ON.
Connect ok!
PWD
257 "/" is current directory.
Get directory
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (0,0,0,0,0,0).
CONNECT 0.0.0.0:50652 HTTP/1.1
Host: 0.0.0.0:50652

HTTP/1.1 503 Service Unavailable
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Proxy-Connection: close
Connection: close
Content-Length: 787
QUIT
221 Goodbye.
martin

Re: Proxy FTP listing issue

Please post a log file from Total Commander or Chrome Browser.
codrinh

Proxy FTP listing issue

Hello,

I am trying to connect to a host via an HTTP Proxy.
The connection is established but the listing feature doesn't work ( didn't test anything else ).
The FTP connection behaves normal with Total Commander using the "HTTP Proxy with FTP support" proxy option.
(in TotalCMD there is another proxy option: HTTP Connect; when this is used a similar listing error occurs )
The listing also works from the Chrome Browser.

Please advise.

. 2017-03-31 07:54:35.493 --------------------------------------------------------------------------

. 2017-03-31 07:54:35.493 WinSCP Version 5.9.4 (Build 7333) (OS 6.3.9600 - Windows Server 2012 R2 Standard)
. 2017-03-31 07:54:35.493 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2017-03-31 07:54:35.493 Log level: Debug 2
. 2017-03-31 07:54:35.493 Local account:
. 2017-03-31 07:54:35.493 Working directory: C:\Program Files (x86)\WinSCP
. 2017-03-31 07:54:35.493 Process ID: 3888
. 2017-03-31 07:54:35.493 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2017-03-31 07:54:35.493 Time zone: Current: GMT+1, Standard: GMT+0 (GMT Standard Time), DST: GMT+1 (GMT Daylight Time), DST Start: 26/03/2017, DST End: 29/10/2017
. 2017-03-31 07:54:35.493 Login time: 31 March 2017 07:54:35
. 2017-03-31 07:54:35.493 --------------------------------------------------------------------------
. 2017-03-31 07:54:35.493 Session name:  (Site)
. 2017-03-31 07:54:35.493 Host name: (Port: 21)
. 2017-03-31 07:54:35.493 User name: (Password: Yes, Key file: No, Passphrase: No)
. 2017-03-31 07:54:35.493 Transfer Protocol: FTP
. 2017-03-31 07:54:35.493 Ping type: Dummy, Ping interval: 30 sec; Timeout: 10 sec
. 2017-03-31 07:54:35.493 Disable Nagle: No
. 2017-03-31 07:54:35.493 Proxy: HTTP
. 2017-03-31 07:54:35.493 HostName: proxy.gistworld.com (Port: 8080); Username: ; Passwd: No
. 2017-03-31 07:54:35.493 Send buffer: 262144
. 2017-03-31 07:54:35.493 UTF: Auto
. 2017-03-31 07:54:35.493 FTPS: None [Client certificate: No]
. 2017-03-31 07:54:35.493 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2017-03-31 07:54:35.493 Local directory: C:\Users\****\Documents, Remote directory: /, Update: Yes, Cache: Yes
. 2017-03-31 07:54:35.493 Cache directory changes: Yes, Permanent: Yes
. 2017-03-31 07:54:35.493 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2017-03-31 07:54:35.493 Timezone offset: 0h 0m
. 2017-03-31 07:54:35.493 --------------------------------------------------------------------------
. 2017-03-31 07:54:35.493 Session upkeep
. 2017-03-31 07:54:35.790 Connecting to *****.com ...
. 2017-03-31 07:54:35.790 Proxy layer changed state from unconnected to connecting
. 2017-03-31 07:54:35.790 Proxy layer changed state from connecting to connected
. 2017-03-31 07:54:35.852 Connection with proxy established, performing handshake...
. 2017-03-31 07:54:35.852 Connected with *******.com. Waiting for welcome message...
< 2017-03-31 07:54:35.852 220 Microsoft FTP Service
> 2017-03-31 07:54:35.852 USER ****
< 2017-03-31 07:54:35.852 331 Password required
> 2017-03-31 07:54:35.852 PASS ************
< 2017-03-31 07:54:35.852 230 User logged in.
> 2017-03-31 07:54:35.852 SYST
. 2017-03-31 07:54:35.852 The server is probably running Windows, assuming that directory listing timestamps are affected by DST.
< 2017-03-31 07:54:35.852 215 Windows_NT
> 2017-03-31 07:54:35.852 FEAT
< 2017-03-31 07:54:35.852 211-Extended features supported:
< 2017-03-31 07:54:35.852  LANG EN*
< 2017-03-31 07:54:35.852  UTF8
< 2017-03-31 07:54:35.852  AUTH TLS;TLS-C;SSL;TLS-P;
< 2017-03-31 07:54:35.852  PBSZ
< 2017-03-31 07:54:35.852  PROT C;P;
< 2017-03-31 07:54:35.852  CCC
< 2017-03-31 07:54:35.852  HOST
< 2017-03-31 07:54:35.852  SIZE
< 2017-03-31 07:54:35.852  MDTM
< 2017-03-31 07:54:35.852  REST STREAM
< 2017-03-31 07:54:35.852 211 END
> 2017-03-31 07:54:35.852 OPTS UTF8 ON
< 2017-03-31 07:54:35.852 200 OPTS UTF8 command successful - UTF8 encoding now ON.
. 2017-03-31 07:54:35.905 Connected
. 2017-03-31 07:54:35.905 Got reply 1 to the command 1
. 2017-03-31 07:54:35.905 --------------------------------------------------------------------------
. 2017-03-31 07:54:35.905 Using FTP protocol.
. 2017-03-31 07:54:35.905 Doing startup conversation with host.
> 2017-03-31 07:54:35.967 PWD
< 2017-03-31 07:54:35.999 257 "/" is current directory.
. 2017-03-31 07:54:35.999 Got reply 1 to the command 16
. 2017-03-31 07:54:35.999 Changing directory to "/".
> 2017-03-31 07:54:35.999 CWD /
< 2017-03-31 07:54:36.046 250 CWD command successful.
. 2017-03-31 07:54:36.046 Got reply 1 to the command 16
. 2017-03-31 07:54:36.046 Getting current directory name.
> 2017-03-31 07:54:36.046 PWD
< 2017-03-31 07:54:36.092 257 "/" is current directory.
. 2017-03-31 07:54:36.092 Got reply 1 to the command 16
. 2017-03-31 07:54:36.092 Session upkeep
. 2017-03-31 07:54:36.280 Retrieving directory listing...
> 2017-03-31 07:54:36.280 TYPE A
< 2017-03-31 07:54:36.311 200 Type set to A.
> 2017-03-31 07:54:36.311 PASV
< 2017-03-31 07:54:36.358 227 Entering Passive Mode (*****,252,214).
. 2017-03-31 07:54:36.358 Error retrieving server address, cannot test if address is routable
> 2017-03-31 07:54:36.358 LIST -a
. 2017-03-31 07:54:36.358 Connecting to *****:64726 ...
. 2017-03-31 07:54:36.358 Proxy layer changed state from unconnected to connecting
. 2017-03-31 07:54:36.389 Proxy layer changed state from connecting to connected
. 2017-03-31 07:54:36.405 Connection with proxy established, performing handshake...
< 2017-03-31 07:54:36.405 150 Opening ASCII mode data connection.
< 2017-03-31 07:54:36.452 550 The network connection was aborted by the local system.
. 2017-03-31 07:54:36.452 Could not retrieve directory listing
. 2017-03-31 07:54:36.452 Got reply 4 to the command 2
. 2017-03-31 07:54:36.452 LIST with -a failed, will try pure LIST
. 2017-03-31 07:54:36.452 Retrieving directory listing...
> 2017-03-31 07:54:36.452 TYPE A
< 2017-03-31 07:54:36.483 200 Type set to A.
> 2017-03-31 07:54:36.483 PASV
< 2017-03-31 07:54:36.530 227 Entering Passive Mode (******,252,215).
. 2017-03-31 07:54:36.530 Error retrieving server address, cannot test if address is routable
> 2017-03-31 07:54:36.530 LIST
. 2017-03-31 07:54:36.530 Connecting to ******:64727 ...
. 2017-03-31 07:54:36.530 Proxy layer changed state from unconnected to connecting
. 2017-03-31 07:54:36.561 Proxy layer changed state from connecting to connected
. 2017-03-31 07:54:36.561 Session upkeep
. 2017-03-31 07:54:36.592 Connection with proxy established, performing handshake...
< 2017-03-31 07:54:36.592 150 Opening ASCII mode data connection.
< 2017-03-31 07:54:36.624 550 The network connection was aborted by the local system.
. 2017-03-31 07:54:36.624 Could not retrieve directory listing
. 2017-03-31 07:54:36.624 Got reply 4 to the command 2
* 2017-03-31 07:54:36.717 (ECommand) Error listing directory '/'.
* 2017-03-31 07:54:36.717 Could not retrieve directory listing
* 2017-03-31 07:54:36.717 The network connection was aborted by the local system.
. 2017-03-31 07:54:37.717 Session upkeep
. 2017-03-31 07:54:37.928 Startup conversation with host finished.
. 2017-03-31 07:54:38.068 Session upkeep
. 2017-03-31 07:54:38.521 Session upkeep
. 2017-03-31 07:54:39.021 Session upkeep
. 2017-03-31 07:54:39.521 Session upkeep