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 […]

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 […]

Chilkat v9.5.0.75 Release Notes (Aug 2018)

The v9.5.0.74 release notes are available here: Chilkat v9.5.0.74 Release Notes v9.5.0.75 Release Notes: Important:  This release accidentally breaks Amazon MWS (not AWS) authentication.  If using MWS, send email to support@chilkatsoft.com for a hotfix, or revert back to v9.5.0.73. Smartcard/USB Tokens Support for Smartcard and USB tokens is much improved. Note: At this point, smartcards and USB tokens are supported […]

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 […]