Sample code for 30+ languages & platforms
DataFlex

FTP Uncommon Compatibility Options

See more FTP Examples

Demonstrates the UncommonOptions property, a comma-separated list of compatibility options for uncommon platform or server requirements. The default is empty and should normally remain empty.

Background: This is a catch-all for narrow workarounds that do not warrant their own properties — behaviors needed only by a particular server or platform quirk. Most applications never set it. When you do, it is to satisfy a specific documented requirement, and the exact keyword matters, so consult the reference list rather than guessing.

Chilkat DataFlex Downloads

DataFlex
Use ChilkatAx-win32.pkg

Procedure Test
    Boolean iSuccess
    Handle hoFtp
    String sTemp1

    Move False To iSuccess

    Get Create (RefClass(cComChilkatFtp2)) To hoFtp
    If (Not(IsComObjectCreated(hoFtp))) Begin
        Send CreateComObject of hoFtp
    End

    Set ComHostname Of hoFtp To "ftp.example.com"
    Set ComUsername Of hoFtp To "myFtpLogin"

    //  Normally you would not hard-code the password in source.  You should instead obtain it
    //  from an interactive prompt, environment variable, or a secrets vault.
    Set ComPassword Of hoFtp To "myPassword"

    //  UncommonOptions is a comma-separated list of compatibility options for uncommon platform or
    //  server requirements.  The default is empty and should normally remain empty; set a documented
    //  keyword only to work around a specific server or platform quirk.
    Set ComUncommonOptions Of hoFtp To "SomeDocumentedKeyword"

    Get ComConnect Of hoFtp To iSuccess
    If (iSuccess = False) Begin
        Get ComLastErrorText Of hoFtp To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Showln "Connected."

    Get ComDisconnect Of hoFtp To iSuccess
    If (iSuccess = False) Begin
        Get ComLastErrorText Of hoFtp To sTemp1
        Showln sTemp1
        Procedure_Return
    End



End_Procedure