Calling a REST GET API and Parsing JSON/XML Response

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

Bd Methods Prevent Copying Huge Amounts of Data

Question:  One use is for unzip a resource embed into an assembly (.dll). The resource is approximately 224MB in size.   The program sometimes throws an out-of-memory exception.   The exception is thrown by Chilkat.Zip.OpenFromMemory and OpenFromByteData methods. How can this problem be solved? Answer: First, this is truly an out-of-memory condition.  The two possible solutions are (1) to allow […]

Stripe Webhooks?

Question from User:   Is there some sample code for Stripe Webhooks in classic ASP? I looked around, and didnt see anything.  Specifically, validating the signatures https://stripe.com/docs/webhooks/signatures Answer:  A Webhook is an HTTP POST that will get sent to your server when a particular event occurs.   You would write an ASP page to receive the HTTP POST.  The ASP code […]

Etsi, XAdES-BES, XAdES-EPES, FacturaE, Electronic Invoicing, etc.

Chilkat v9.5.0.75 will include features to make it easy to generate XAdES-BES and XAdES-EPES signatures for electronic invoicing and tax reporting for many countries. The goal is to provide an easy and inexpensive solution for these complicated requirements.  Chilkat has been working with customers in Spain, Italy, Hungary, India, Brazil, Costa Rica, and elsewhere to get things working smoothly.  (Contact […]

Chilkat v9.5.0.74 Release Notes

The Chilkat v9.5.0.73 release notes are available here: Chilkat v9.5.0.73 Release Notes The Chilkat v9.5.0.74 release was only for the Node.js and Electron builds. It was required to support the release of the latest versions of Electron and Node.js The .74 release will be skipped for all other programming languages.

HMAC Hex Key Ambiguity

This happens all the time.. Quite often, a service provider will provide instructions for HMAC generation, and will provide a hexadecimal HMAC key in the example, such as: 01A0251D601FEF3305A38B124068A001CF3F099AA187DB2886314C67CDFDEBCD This is implicitly ambiguous because there are two ways to interpret the instructions: 1) The HMAC key is composed of the ascii bytes ‘0’, ‘1’, ‘A’, ‘0’, ‘2’, ‘5’, etc. In […]

POP3 Error: No X-UIDL header found

The Chilkat MailMan class can fetch emails from a POP3 server in two ways: by sequence number, or by UIDL. When an email is fetched by UIDL, or fetched in a way such that a full mapping of UIDL’s to sequence numbers was retrieved, Chilkat will add an “X-UIDL” header to the Email object that is returned. This allows for […]

SSH/SFTP Error: Must first connect to the SSH server

The following error is explained in this post: ChilkatLog: DownloadFileByName: DllDate: Apr 25 2018 ChilkatVersion: 9.5.0.73 UnlockPrefix: * Architecture: Little Endian; 64-bit Language: Cocoa Objective-C VerboseLogging: 0 SftpVersion: 3 Component successfully unlocked using purchased unlock code. Must first connect to the SSH server. –DownloadFileByName –ChilkatLog The above error can happen after a long period of inactivity. Let’s say your application […]

Chilkat v9.5.0.73 Release Notes

The v9.5.0.72 release notes are available here: Chilkat v9.5.0.72 Release Notes v9.5.0.73 Release Notes: Email The SetHtmlBody method, in certain circumstances, would incorrectly set the top-level MIME header to text/html for multipart messages. This was fixed. HTTP Non us-ascii chars in the URL path are now always URL encoded using the utf-8 encoding. OAuth2 Added the UseBasicAuth and AppCallbackUrl properties. […]