Office365 POP3 Authenticate Fails but Previously Succeeded

It’s normal for OAuth2 access tokens to expire after some time, such as 1 hour, and then you’ll need to refresh and retry. For example, this error in the LastErrorText for a call to Pop3Authenticate could indicate the OAuth2 accces token expired: Pop3Authenticate: DllDate: Mar 28 2023 ChilkatVersion: 9.5.0.94 UnlockPrefix: *** Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 1 Pop3Authenticate: […]

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