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

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

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

How to Create QuickBooks in Developer Dashboard

1.  Log in to your Intuit Developer Account Go to https://developer.intuit.com/app/developer/homepage and Sign In. 2. Go to the Dashboard Click on the “Dashboard” link in the top right of the web page. 3. Click on the blue “+ Create an app” link/button. 4. Select the “Quickbooks Online and Payments” platform. 5. Give your app a name and select a scope.  […]