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