Recent Posts

Pages: [1] 2 3 ... 10
1
FTP / Re: GetDirCount() not returning latest folder listing from remote server
« Last post by Chilkat on July 05, 2018, 04:36:19 PM »
Call ftp2.ClearDirCache()
2
FTP / GetDirCount() not returning latest folder listing from remote server
« Last post by ukrob on July 02, 2018, 09:26:39 AM »
I have got the ftp2 active x to connect to ftps server with encrypted auth and encrypted data with client cert required. (Thanks for the good examples)

I then want to code uploading a file and checking if it reached the server. I do this by the below in my existing ftp code  but with the ftp2 class it's not quite working

1, I set-up a connection to the server
2, I change folder into "/" folder
3, I get Folder listing
4, I then upload a file.
5, I then want to get the directory listing from remote server to see if the file I uploaded is there but getDirCount() is returning the same number of files that I received in step 3

How do I get a fresh listing from the remote server without Changing Directory or disconnecting and setting up a new connection?

3
REST / HTTP / HTTPS / chilkat to login groupon
« Last post by Etrama on June 15, 2018, 05:01:58 PM »
Hello all,
I am using chilkat in python to code login to https://groupon.com. But all receive status nothing.
I tried with requests lib too and received 403 error.
Can anyone help me with this?
4
.NET / Re: Replacing Ionic.zip.dll with Chilkat.zip
« Last post by XardozCom on June 14, 2018, 10:38:48 AM »
Thank You
5
.NET / Re: Replacing Ionic.zip.dll with Chilkat.zip
« Last post by Chilkat on June 14, 2018, 07:37:57 AM »
The sequence of calls should be like this:

Code: [Select]
Dim zip As New Chilkat.Zip
success = zip.NewZip(sAppDataPath & "\Feature" & sFeatureNumber & ".zip")
zip.SetPassword("1234")
zip.PasswordProtect = True
zip.AppendString("results.dat", sSystemKey.ToString & vbNewLine & s.ToString)
success = zip.WriteZipAndClose()
6
.NET / Replacing Ionic.zip.dll with Chilkat.zip
« Last post by XardozCom on June 13, 2018, 11:54:48 PM »


All seems to be going well as Chilkat is straightforward

We get a Zip with a file with the needed data, but no password required!

Please help...

    Public Function ReturnDecodedKeys(ByVal sFeatureNumber As String, _
                                      ByVal sAppDataPath As String, _
                                      Optional ByVal bZip As Boolean = False) As String

        If bZip Then
            Dim zip As New Chilkat.Zip
            Dim success As Boolean = zip.UnlockComponent("z")
            Dim resultZip As String = ""
            If (success <> True) Then
                resultZip = zip.LastErrorText
                AppendToFile("Chilkat Logon Failed: " & resultZip)
                Return resultZip
                Exit Function
            End If

            zip.SetPassword("1234")
            zip.PasswordProtect = True
            Dim saveExtraPath As Boolean
            saveExtraPath = False
            success = False
            success = zip.AppendOneFileOrDir(sAppDataPath & "\Feature" & sFeatureNumber & ".zip", saveExtraPath)
            'success = zip.NewZip(sAppDataPath & "\Feature" & sFeatureNumber & ".zip")
            If (success <> True) Then
                resultZip = zip.LastErrorText
                AppendToFile("Chilkat Zip Creation Failed: " & resultZip)
                Return resultZip
                Exit Function
            End If

            Dim fac As New Chilkat.FileAccess
            zip.AppendString("results.dat", sSystemKey.ToString & vbNewLine & s.ToString)
            success = False

            success = zip.WriteZipAndClose()
            If (success <> True) Then
                resultZip = zip.LastErrorText
                AppendToFile("Feature.zip Failed: " & resultZip)
                Return resultZip
                Exit Function
            End If

        End If

        ReturnDecodedKeys = s 'sSystemKey & "|" & s
    End Function

7
I am Trying to create calendar in my gmail account using REST api of chilkat. But when i am executing this line

 success = rest.FullRequestSb(L"POST",L"/calendar/v3/calendars",sbReq,sbJson);
 i am gettting error.here is error my log.

ChilkatLog:
  FullRequestSb:
    DllDate: May 24 2018
    ChilkatVersion: 9.5.0.73
    UnlockPrefix: Anything for 30-day trial
    Architecture: Little Endian; 32-bit
    Language: Visual C++ 9.0 (32-bit)
    VerboseLogging: 0
    fullRequestBody:
      Sending request with body...
      Sent request.
      fullRequestGetResponse:
        Reading response header...
        Failed to read beginning of SSL/TLS record.
        b: 0
        dbSize: 0
        nReadNBytes: 0
        idleTimeoutMs: 30000
        Failed to receive more TLS application data.
        tlsApp: Socket operation timeout.
        elapsedMs: Elapsed time: 30078 millisec
        Failed.
        Failed to read response header.
      --fullRequestGetResponse
    --fullRequestBody
    Failed.
  --FullRequestSb
--ChilkatLog


and here is my code that i am using.

CkGlobalW glob;
    bool success = glob.UnlockBundle(L"Anything for 30-day trial");
   const wchar_t* b1 = glob.lastErrorText();
   CkRestW rest;
 
    //   Provide a previously obtained OAuth2 access token.
    CkOAuth2W oauth2;
    oauth2.put_AccessToken(L"OAUTH2_ACCESS_TOKEN");
    rest.SetAuthOAuth2(oauth2);

    success = rest.Connect(L"imap.gmail.com",993,true,true);
    if (success != true) {
      const wchar_t* b = rest.lastErrorText();
        return;
    }

if(success == true)
   {
      success = rest.SetAuthBasic(L"xyz@gmail.com", L"password");
      if(success == true)
      {
         
    //  The following code creates the JSON request body.
    //  The JSON created by this code is shown below.
         
    CkJsonObjectW jsonReq;
    jsonReq.UpdateString(L"summary",L"test calendar abc");

    CkStringBuilderW sbReq;
    jsonReq.EmitSb(sbReq);

    rest.AddHeader(L"Content-Type",L"application/json");

    CkStringBuilderW sbJson;
    success = rest.FullRequestSb(L"POST",L"/calendar/v3/calendars",sbReq,sbJson); // error line
    if (success != true) {
      const wchar_t* b = rest.lastErrorText();
        return;
    }

    if (rest.get_ResponseStatusCode() != 200) {
      int statuscode = rest.get_ResponseStatusCode();
      const wchar_t* str = sbJson.getAsString();
        return;
    }
8
Digital Signatures / Re: Signing XML with smartcard(private key not exportable)
« Last post by Chilkat on June 04, 2018, 04:59:30 PM »
Use the XmlDSigGen.SetX509Cert to indirectly set the private key without needing to explicitly export it.

9
XML / Re: XML SortByTag
« Last post by Chilkat on June 04, 2018, 04:54:37 PM »
Worked fine for me in v9.5.0.73
10
XML / XML SortByTag
« Last post by gertir on June 04, 2018, 08:34:33 AM »
Hi,

I'm trying to sort all nodes by name, but I'm getting unexpected behaviour.
What I expect is then mod:clausule nodes would be ordered right after mod:afsluitprovisieproducent.
Howeverthese nodes are ordered at the beginning, before mod:aantalstappenafbouwregeling.
When I remove one (random) mod:clausule node, all other mod:clausule nodes are sorted like expected.

Chilkat version is 9.5.0.54.
Here's the xml:
<?xml version="1.0" encoding="utf-8" ?>
<mod:subpolis pc="W">
    <mod:aantalstappenafbouwregeling>0</mod:aantalstappenafbouwregeling>
    <mod:afsluitprovisie>0</mod:afsluitprovisie>
    <mod:afsluitprovisieperc>0</mod:afsluitprovisieperc>
    <mod:afsluitprovisiepercproducent>0</mod:afsluitprovisiepercproducent>
    <mod:afsluitprovisieperctp>0</mod:afsluitprovisieperctp>
    <mod:afsluitprovisieproducent>0</mod:afsluitprovisieproducent>
    <mod:omsproductcode>Uitgebreide gevarenverzekering</mod:omsproductcode>
    <mod:omssoortverzekering>Brand</mod:omssoortverzekering>
    <mod:pakketkorting>0</mod:pakketkorting>
    <mod:prolongatiepremieperjaar>255.56</mod:prolongatiepremieperjaar>
    <mod:prolpremieexclpakketkorting>63.89</mod:prolpremieexclpakketkorting>
    <mod:promillagedooreen>1.28</mod:promillagedooreen>
    <mod:soortpolis>0</mod:soortpolis>
    <mod:soortverzekering>BR</mod:soortverzekering>
    <mod:tekencommissie>7.39</mod:tekencommissie>
    <mod:tekencommissieperc>0</mod:tekencommissieperc>
    <mod:tekencommissieperctp>0</mod:tekencommissieperctp>
    <mod:tekencommissietp>0</mod:tekencommissietp>
    <mod:toekomstprovisie>0</mod:toekomstprovisie>
    <mod:transactiecode>0</mod:transactiecode>
    <mod:transactiestatus>In behandeling</mod:transactiestatus>
    <mod:verzekerdbedrag>165000</mod:verzekerdbedrag>
    <mod:vrijveld10>0</mod:vrijveld10>
    <mod:vrijveld13>0</mod:vrijveld13>
    <mod:vrijveld14>0</mod:vrijveld14>
    <mod:vrijveld6>0</mod:vrijveld6>
    <mod:vrijveld7>0</mod:vrijveld7>
    <mod:vrijveld8>0</mod:vrijveld8>
    <mod:vrijveld9>0</mod:vrijveld9>
    <mod:clausule pc="W">
        <mod:internclausulenummer>1</mod:internclausulenummer>
    </mod:clausule>
    <mod:clausule pc="W">
        <mod:internclausulenummer>504</mod:internclausulenummer>
    </mod:clausule>
    <mod:clausule pc="W">
        <mod:internclausulenummer>505</mod:internclausulenummer>
    </mod:clausule>
    <mod:clausule pc="W">
        <mod:internclausulenummer>512</mod:internclausulenummer>
    </mod:clausule>
    <mod:clausule pc="W">
        <mod:internclausulenummer>692</mod:internclausulenummer>
    </mod:clausule>
    <mod:clausule pc="W">
        <mod:internclausulenummer>692</mod:internclausulenummer>
    </mod:clausule>
    <mod:clausule pc="W">
        <mod:internclausulenummer>1311</mod:internclausulenummer>
    </mod:clausule>
    <mod:conditie pc="W">
        <mod:internconditienummer>187</mod:internconditienummer>
    </mod:conditie>
    <mod:mijverdelingpolis pc="W">
        <mod:maatschappijnummer>VN013</mod:maatschappijnummer>
    </mod:mijverdelingpolis>
    <mod:polisvrij pc="W">
        <mod:revisienummer>0</mod:revisienummer>
        <mod:rubriek1>Royement i.v.m. opzegging</mod:rubriek1>
    </mod:polisvrij>
    <mod:tekstpolis pc="W">
        <mod:bloknummer>1</mod:bloknummer>
        <mod:paginanummer>1</mod:paginanummer>
        <mod:revisienummer>0</mod:revisienummer>
    </mod:tekstpolis>
    <mod:acceptatiepunten>0</mod:acceptatiepunten>
</mod:subpolis>
Pages: [1] 2 3 ... 10