Parsing Extremely Large XML Files

Question: I’m trying to read a very large xml file. It’s about 500MB. The content is a list of records. There are about 100,000 nodes with the same tag that contain single records.   Is there a limit on the file size or number of nodes that can be processed? Answer: There is no limit other than running out of memory.  […]

CkPython vs. Chilkat2-Python

Question: Should I use CKPython or Chilkat2-Python for a new development (environment = Windows and Python 3.6) What’s the difference between these? Answer: The CkPython API is the original Chilkat for Python API that uses something called SWIG (swig.org) to produce the Python wrappers around the C/C++ implementation.  The result is that CkPython API has a style with more a […]

Test Creating ActiveX Object using VBScript (.vbs)

This article guides you to verify that the Chilkat ActiveX is installed properly and that it’s possible to create an instance of the object. Please first read this tutorial to understand basic concepts:  https://chilkatsoft.com/activex_dll_registration_tutorial.asp Step 1.  Download the 32-bit Chilkat ActiveX from here: https://chilkatsoft.com/downloads_ActiveX.asp *select the Zip Install (manual registration) * DO NOT unzip in C:\Windows or C:\Windows\system32.  Never put […]

Convert CSV to utf-8?

Question: We’ve purchased a few of your products in the past and they work great.  Here’s a question on another one:  I’m creating a .csv file within a vfp program and I need it to be an Utf-8 format.  I’m not finding anywhere how to do that programatically.  Do you have a product that will convert? Answer: For those that […]

Chilkat HTTP Methods that return an HttpResponse Object

Question: I am having a problem identifying read timeouts from sites. I set ConnectTimeout and ReadTimeout properties of the HTTP object. When the site fails to respond within ReadTimeout, the following happens: PText still returns 0 PText returns a response object Reading of StatusCode and StatusText properties of the response object is successful Reading of BodyStr property of the response […]

PayPal REST API OAuth2 Authentication

There’s a lot of confusion about exactly what login/password (or clientID/clientSecret) is to be used for obtaining an OAuth2 access token for PayPal REST API calls. PayPal uses simple HTTP Basic authentication (protected by a TLS connection) to obtain an access token.   Using the Chilkat Rest library, your application would provide the credentials in this way (in pseudo-code) rest.SetAuthBasic(“CLIENT_ID”, […]

Calling a REST POST API and Parsing JSON/XML Response

This blog post describes a general procedure for writing code that calls an HTTP/HTTPS POST REST API and parses the JSON or XML response. Step 1: Form the CURL Command A POST request in the form of a CURL command will look like this: curl -X POST https://test-api.service.hmrc.gov.uk/organisations/vat/123456789/returns \ -H “Accept: application/vnd.hmrc.1.0+json” \ -H “Content-Type: application/json” \ -H “Authorization: Bearer […]