Archived Forum Post

Index of archived forum posts

Question:

Chilkat FTP XML Dirlisting

Jul 09 '12 at 08:30

In 9.3.0, I could see XML directory listing gives time stamp as 24 hours format (whether windows server or linux), suddenly in 9.3.1 , for windows servers, in XML listing it is giving me AM/PM format, don’t know the reason where the problem is, can some one help with this?


Answer

I would need to see more information, such as (1) the XML itself, (2) the contents of the LastErrorText property after calling GetXmlDirListing, and (3) the contents of the SessionLog property (make sure to set KeepSessionLog = true).


Answer

Pl. find the Details Below

Log for 9.3.1

1) <?xml version="1.0" encoding="utf-8" ?> <remotedir> <file> <name>inet_mittag.zip</name> <size>3479072</size> <lastmodtime full="20120627-010100" m="6" d="27" y="2012" hh="1" mm="1" ss="0"/> </file> </remotedir> 2) ChilkatLog: GetXmlDirListing: DllDate: Apr 14 2012 UnlockPrefix: SGlassKnickFTP Username: SKONERU:koneru Architecture: Little Endian; 32-bit Language: .NET 4.0 ProgressMonitoring: enabled: no heartbeatMs: 0 sendBufferSize: 65536 --ProgressMonitoring pattern: .zip supportsMLSD: 0 MLSD is only used for full directory listings. Using LIST instead... ListDir: Passive transfer mode hostAddr: 6x.15x.22x.18x DataConnect: hostname: 6x.15x.22x.18x port: 10223 ConnectTimeoutMs_1: 60000 calling ConnectSocket2 IPV6 enabled connect with NO heartbeat. This is an IPV4 numeric address... AddrInfoList: AddrInfo: ai_flags: 4 ai_family: 2 ai_socktype: 1 ai_protocol: 0 ai_addrlen: 16 ai_canonname: (NULL) --AddrInfo --AddrInfoList Connect using IPV4. ipAddress1: 6x.15x.22x.18x myIP_3: 192.168.0.94 myPort_3: 52377 connect successful (2) --DataConnect listDirStatusCode: 125 ReadFtpDataChannel: numBytesRequested: 4096 Connection closed by connected peer. --ReadFtpDataChannel Data connection closed Type 1 directory listing ListTimeMS: 858 --ListDir --GetXmlDirListing --ChilkatLog 3) 220 Microsoft FTP Service . USER xxxxx 331 Password required for xxxxx. . PASS ** 230-Willkommen! 230 User xxxxx logged in. . TYPE I 200 Type set to I. . SYST 215 Windows_NT . FEAT 211-FEAT SIZE MDTM 211 END . CWD /user/xxxxx/Mittag/ 250 CWD command successful. . PASV 227 Entering Passive Mode (xxxxxxxx) . LIST .zip 125 Data connection already open; Transfer starting.

(DirListingCharset: ansi) read listing success = 1, listing size = 56 06-27-12 01:01PM 3479072 inet_mittag.zip 226 Transfer complete.

Log for 9.2.0 1) <?xml version="1.0" encoding="utf-8" ?> <remotedir> <file> <name>inet_mittag.zip</name> <size>3479072</size> <lastmodtime full="20120627-130100" m="6" d="27" y="2012" hh="13" mm="1" ss="0"/> </file> </remotedir>

2) ChilkatLog: GetXmlDirListing: DllDate: May 26 2011 UnlockPrefix: SGlassKnickFTP Username: SKONERU:koneru Architecture: Little Endian; 32-bit Language: .NET 4.0 pattern: *.zip MLSD is only used for full directory listings. Using LIST instead... initialGreeting: 220 Microsoft FTP Service ListDir: Passive transfer mode hostAddr: 6x.15x.22x.18x DataConnect: hostname: 6x.15x.22x.18x port: 10055 ConnectTimeoutMs: 60000 calling ConnectSocket2 This is an IPV4 numeric address... AddrInfoList: AddrInfo: ai_flags: 4 ai_family: 2 ai_socktype: 1 ai_protocol: 0 ai_addrlen: 16 ai_canonname: (NULL) Connect using IPV4. ipAddress1: 6x.15x.22x.18x myIP_3: 192.168.0.94 myPort_3: 52345 connect successful. listDirStatusCode: 125 ReadFtpDataChannel: numBytesRequested: 4096 Connection closed by server. Data connection closed Type 1 directory listing ListTimeMS: 811 --ListDir --GetXmlDirListing --ChilkatLog

3) 220 Microsoft FTP Service . USER xxxxx 331 Password required for xxxxx. . PASS *** 230-Willkommen! 230 User xxxxx logged in. . TYPE I 200 Type set to I. . SYST 215 Windows_NT . FEAT 211-FEAT SIZE MDTM 211 END . CWD /user/xxxxx/Mittag/ 250 CWD command successful. . PASV 227 Entering Passive Mode (XXXXXXX) . LIST .zip 125 Data connection already open; Transfer starting.

(DirListingCharset: ansi) read listing success = 1, listing size = 56 06-27-12 01:01PM 3479072 inet_mittag.zip 226 Transfer complete.


Answer

log_9.3.1.0

<body>

1)
<?xml version="1.0" encoding="utf-8" ?>
<remotedir>
  <file>
    <name>inet_mittag.zip</name>
    <size>3479072</size>
    <lastmodtime full="20120627-010100" m="6" d="27" y="2012" hh="1" mm="1" ss="0"/>
  </file>
</remotedir>
2)
ChilkatLog:
  GetXmlDirListing:
    DllDate: Apr 14 2012
    UnlockPrefix: SGlassKnickFTP
    Username: SKONERU:koneru
    Architecture: Little Endian; 32-bit
    Language: .NET 4.0
    ProgressMonitoring:
      enabled: no
      heartbeatMs: 0
      sendBufferSize: 65536
    --ProgressMonitoring
    pattern: .zip
    supportsMLSD: 0
    MLSD is only used for full directory listings.  Using LIST instead...
    ListDir:
      Passive transfer mode
      hostAddr: 6x.15x.22x.18x
      DataConnect:
        hostname: 6x.15x.22x.18x
        port: 10223
        ConnectTimeoutMs_1: 60000
        calling ConnectSocket2
        IPV6 enabled connect with NO heartbeat.
        This is an IPV4 numeric address...
        AddrInfoList:
          AddrInfo:
            ai_flags: 4
            ai_family: 2
            ai_socktype: 1
            ai_protocol: 0
            ai_addrlen: 16
            ai_canonname: (NULL)
          --AddrInfo
        --AddrInfoList
        Connect using IPV4.
        ipAddress1: 6x.15x.22x.18x
        myIP_3: 192.168.0.94
        myPort_3: 52377
        connect successful (2)
      --DataConnect
      listDirStatusCode: 125
      ReadFtpDataChannel:
        numBytesRequested: 4096
        Connection closed by connected peer.
      --ReadFtpDataChannel
      Data connection closed
      Type 1 directory listing
      ListTimeMS: 858
    --ListDir
  --GetXmlDirListing
--ChilkatLog
3)
220 Microsoft FTP Service
.
USER xxxxx
331 Password required for xxxxx.
.
PASS **
230-Willkommen!
230 User xxxxx logged in.
.
TYPE I
200 Type set to I.
.
SYST
215 Windows_NT
.
FEAT
211-FEAT
    SIZE
    MDTM
211 END
.
CWD /user/xxxxx/Mittag/
250 CWD command successful.
.
PASV
227 Entering Passive Mode (xxxxxxxx)
.
LIST .zip
125 Data connection already open; Transfer starting.

(DirListingCharset: ansi) read listing success = 1, listing size = 56 06-27-12 01:01PM 3479072 inet_mittag.zip 226 Transfer complete.

</body>


Answer

log_9.2.0

<body>

1)
<?xml version="1.0" encoding="utf-8" ?>
<remotedir>
  <file>
    <name>inet_mittag.zip</name>
    <size>3479072</size>
    <lastmodtime full="20120627-130100" m="6" d="27" y="2012" hh="13" mm="1" ss="0"/>
  </file>
</remotedir>

2) ChilkatLog: GetXmlDirListing: DllDate: May 26 2011 UnlockPrefix: SGlassKnickFTP Username: SKONERU:koneru Architecture: Little Endian; 32-bit Language: .NET 4.0 pattern: *.zip MLSD is only used for full directory listings. Using LIST instead... initialGreeting: 220 Microsoft FTP Service ListDir: Passive transfer mode hostAddr: 6x.15x.22x.18x DataConnect: hostname: 6x.15x.22x.18x port: 10055 ConnectTimeoutMs: 60000 calling ConnectSocket2 This is an IPV4 numeric address... AddrInfoList: AddrInfo: ai_flags: 4 ai_family: 2 ai_socktype: 1 ai_protocol: 0 ai_addrlen: 16 ai_canonname: (NULL) Connect using IPV4. ipAddress1: 6x.15x.22x.18x myIP_3: 192.168.0.94 myPort_3: 52345 connect successful. listDirStatusCode: 125 ReadFtpDataChannel: numBytesRequested: 4096 Connection closed by server. Data connection closed Type 1 directory listing ListTimeMS: 811 --ListDir --GetXmlDirListing --ChilkatLog

3) 220 Microsoft FTP Service . USER xxxxx 331 Password required for xxxxx. . PASS *** 230-Willkommen! 230 User xxxxx logged in. . TYPE I 200 Type set to I. . SYST 215 Windows_NT . FEAT 211-FEAT SIZE MDTM 211 END . CWD /user/xxxxx/Mittag/ 250 CWD command successful. . PASV 227 Entering Passive Mode (XXXXXXX) . LIST .zip 125 Data connection already open; Transfer starting.

(DirListingCharset: ansi) read listing success = 1, listing size = 56 06-27-12 01:01PM 3479072 inet_mittag.zip 226 Transfer complete.

</body>