Recent Posts

Pages: [1] 2 3 ... 10
1
This forum is closed.  Post instead to stackoverflow.com with tag "chilkat"
2
Auth / This forum is closed. Post instead to stackoverflow.com with tag "chilkat"
« Last post by Chilkat on August 14, 2018, 11:28:38 AM »
This forum is closed.  Post instead to stackoverflow.com with tag "chilkat"
3
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()
4
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?

5
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?
6
.NET / Re: Replacing Ionic.zip.dll with Chilkat.zip
« Last post by XardozCom on June 14, 2018, 10:38:48 AM »
Thank You
7
.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()
8
.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

9
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;
    }
10
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.

Pages: [1] 2 3 ... 10