Repository navigation
Utility Methods Reference
Qriist edited this page Sep 17, 2026
·
1 revision
The utility methods provide standalone helper functions for date handling, encoding, string comparison, and system inspection. These methods do not require a specific handle and operate independently.
| Method | Description | libcurl Reference |
|---|---|---|
GetDate(dateString, returnEpoch?) |
Parses a date string (RFC 822/2822, ISO 8601, etc.) into an AHK date or Unix epoch. | curl_getdate |
Timestamp(tsFormat := "Readable", scale := "float-seconds") |
Generates the current time in various common formats. | — |
| Method | Description | libcurl Reference |
|---|---|---|
EncodeBase64(input) |
Base64-encodes a String, Integer, Object, Array, Map, Buffer, or File. | — |
DecodeBase64(str, returnBuffer?, Base64URL?) |
Decodes a Base64 string (standard or URL-safe) into a String or Buffer. | — |
DecodeJwt(input) |
Decodes a JWT token into a Map containing header, payload, and signature. | — |
| Method | Description | libcurl Reference |
|---|---|---|
StrCompare(str1, str2, maxLength?) |
Performs a case-insensitive string comparison. | curl_strequal |
GetEnv(input) |
Retrieves a specified system environment variable. | curl_getenv |
| Method | Description | libcurl Reference |
|---|---|---|
PrintObj(ObjectMapOrArray, depth := 5, indentLevel := "") |
Recursively formats AHK data types into a human-readable string. | — |
- Easy Handle Reference — single transfer lifecycle
- Multi Handle Reference — concurrent transfer pool management
- WebSocket Reference — framed protocol-level messaging
Foundations
Operations
- Download Modes
- Setting and Listing Options
- Setting and Inspecting Headers
- POST and Upload
- Multiple Easy Handles
- Async and Multi Interface
- URL Construction
- Share Interface
- MIME and Multipart
- Raw Send and Receive
- Pause and Resume
- WebSocket
- SSL Sessions
- Debug and Diagnostics
API Reference
- Easy Handle Reference
- Multi Handle Reference
- Share Handle Reference
- MIME Handle Reference
- URL Handle Reference
- Utility Methods Reference
- WebSocket Reference
Code Snippets