Recent Posts

Pages: [1] 2 3 ... 10
.NET / Re: Chilkat .NET Error: HRESULT: 0x800736B1, MethodInvocationException
« Last post by rthomas on February 21, 2018, 05:22:56 AM »
Downloading the runtime specified on chilkat site is not enought.
We had some problem on Windows 7 / 2008 / 2012 with ChilkatDotNet2.dll build used in 32 bits with .NET 3.5

sxstrace reveal can't solve reference to Microsoft.VC80.CRT ...

After searching a long time this article gave the solution.
This download is mandatory to fix the problem. (Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update)

Encryption / Re: AES CBC/PKCS7 encryption of empty msg fails
« Last post by Marco on February 08, 2018, 09:58:24 AM »
Thanks a lot for your offer! I replaced the encryption routines with cryptopp temporarily - which works fine.
I retest this issue with your next release and switch back, when working fine.

Sorry for the confusion with the test vector, of course it's AES128, made a copy/paste error. But the given vector is valid, anyway.

When taking PKCS7 padding, an empty msg is invalid - as far as I interpret the padding spec.

Good to hear that it's working fine now.
REST / HTTP / HTTPS / Re: REST Basic authentication only works in localhost
« Last post by Chilkat on February 07, 2018, 11:40:08 AM »
It's probably because you're not using SSL/TLS.   When it's localhost, there's no security issue. Basic authentication is just base64 encoding the username/password and sticking it in the request header.  If the request is not protected with TLS, then the login/password is easily obtained by anyone sniffing network packets.   I think Chilkat is preventing Basic authentication on non-SSL/TLS connections, except if it's localhost.
REST / HTTP / HTTPS / Re: ChilkatHttp and ChilkatTask
« Last post by Chilkat on February 07, 2018, 11:33:47 AM »
You would never actually use the Do...Loop in your program.  Calling a method asynchronously and then doing a Do...Loop to wait for the task to complete is just an over-complicated way to duplicate a synchronous call.

The Do...Loop exists so that one can see how the results of the task are obtained after it's completed.

In actuality, you would start the task, and then some other part of your application might check on the task to see if it's finished. 
REST / HTTP / HTTPS / REST Basic authentication only works in localhost
« Last post by jxzhao on February 06, 2018, 10:16:58 AM »
We are evaluating Chilkat TCL library. One strange thing we noticed is that when using REST with basic authentication, if the request is sent to localhost, the proper response is received (200). But if using a non local host IP, the response is 401 authentication required. We know the request itself and the authentication information is correct by using POSTMAN to verify independently. Does anyone know the reason of this strange behavior? BTW, the chilkat APIs we used are:

set rest [new_CkRest]
set success [CkRest_Connect $rest $addr $port 0 0]
set success [CkRest_SetAuthBasic $rest $userName $password]
set response [CkRest_fullRequestNoBody $rest "GET" "..."]

Thank you for your help in advance.

REST / HTTP / HTTPS / ChilkatHttp and ChilkatTask
« Last post by fureka on February 06, 2018, 09:43:14 AM »

I want to eliminate the Do....Loop cycle until waiting an answer for a httpRequest.  It is possible to use ChilkatTask (ActiveX) object combined with ChilkatHttp instead of the waiting cycle?


REST / HTTP / HTTPS / Re: Curl -F parameter
« Last post by Mafact on February 06, 2018, 09:39:12 AM »

Will do :)
REST / HTTP / HTTPS / Re: Curl -F parameter
« Last post by Chilkat on February 06, 2018, 07:01:02 AM »
Use the online tool to generate code from a CURL command:
REST / HTTP / HTTPS / Curl -F parameter
« Last post by Mafact on February 06, 2018, 04:40:53 AM »

I'm trying to upload a file but without success...

the Curl command wich is working is

curl \
    -H "X-Software-Company: 08d09a20-1a94-4284-9305-375d46a02914" \
    -F "file=@file.xml" \
    -u <login:password> ""

So I can connect using

   oHttp.SetRequestHeader  "Content-Type", "multipart/form-data"   

   oHttp.Login = cLogin
   oHttp.Password = cPasswd
   oReq.ContentType = "multipart/form-data"
   oReq.AddHeader "X-Software-Company", "08d09a20-1a94-4284-9305-375d46a02914"
   oReq.AddHeader "Content-Type", "multipart/form-data"   
   oReq.HttpVerb = "POST"
  This one seem to not work ( -d param in CURL, not -F )
   oReq.AddParam ("file","file=@file.xml")

   oResp = oHttp.PostUrlEncoded("",oReq)

   success = oHttp.LastMethodSuccess return 1 ok

  The file is never sended !

  Any Idea ?

Email Protocols / Email parsing
« Last post by skingsbury on February 05, 2018, 11:13:23 AM »
I am trying to create a email parser that will evaluate the subject line as well as the contents of the email and then execute a task based on that information. I am trying to do this using chilkat/perl but have been unable to find a good example. Does anyone have an idea on how I would set this up?
Pages: [1] 2 3 ... 10