Quickly Understanding the MIME Format of Email

The format of email is MIME. A simple MIME message consists of headers followed by a body.  For example, here’s a simple text/plain email: From: sender@example.com To: recipient@example.com Subject: Example Email Content-Type: text/plain; charset=”UTF-8″ Hello, This is a simple plain text email. Regards, Sender MIME can be multipart. Here’s a text/plain email with a PDF attachment: From: sender@example.com To: recipient@example.com […]

AES-CMAC Keyed Hash Algorithm

The AES-CMAC keyed hash function, see https://www.rfc-editor.org/rfc/rfc4493, has been added to Chilkat for the next version release (v9.5.0.95). Here are some examples: AutoIt AES-CMAC C AES-CMAC Python AES-CMAC C++ AES-CMAC C# AES-CMAC DataFlex AES-CMAC Delphi AES-CMAC Visual FoxPro AES-CMAC Go AES-CMAC Java AES-CMAC Objective-C AES-CMAC Perl AES-CMAC PHP ActiveX AES-CMAC PHP AES-CMAC PowerBuilder AES-CMAC PowerShell AES-CMAC Swift AES-CMAC Tcl AES-CMAC […]

Getting an OAuth2 access token using “client credentials” does not require interactivity with a browser

The “client credentials” OAuth2 flow is allowed by many REST API’s for the case where a program is running in a non-interactive environment. It’s simply an HTTP POST where the client_id and client_secret are sent, and the OAuth2 access token is returned. If you have a sample CURL statement that demonstrates how to do it, you can generate Chilkat source […]

Generate Chilkat Code from PostMan

This is a way to generate Chilkat source code from a working PostMan request: Open Postman: Launch the Postman application on your computer. Create or Import a Request: Create a new request or import an existing one that you want to inspect the raw HTTP request for. Send the Request: Click the “Send” button to send the request to the […]

How to Send application/x-www-form-urlencoded POST to a URL with some Params

Question I need to get a token: URL TEST : “https://apitest.dtes.mh.gob.sv/seguridad/auth” Method : POST Parameters Headers Content-type : application/x-www-form-urlencoded Body user (string) pwd (string) Answer See the online tutorial explaining common HTTP requests at Format of Common HTTP Requests. Specifically, look here: https://www.chilkatsoft.com/http_post_url_encoded.asp

Does XML Convert to JSON in an Unambiguous Way?

Chilkat does not provide functionality for XML-to-JSON conversion (or the reverse) because XML does not convert to JSON in an unambiguous way. XML and JSON have different structural and data modeling principles, leading to potential challenges and ambiguities during the conversion process. Some factors that contribute to the potential ambiguities are: Hierarchical vs. Flat Structure: XML supports deeply nested hierarchical […]

LoadPfxFile Takes a Long Time to Load?

Question: I’m using the LoadPfxFile method of the cert object and it takes about 4 or 5 seconds in load the PFX certificate. On the other hand, if I sign the document using an installed certificate, it’s instantaneous. Why does LoadPfxFile take so much time? Is there a way to reduce the loadPfxFile time? Answer: When a password is used […]