CURL.GetDebugMessages
---------------------

Returns the debug output of the transaction as text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [13.0](newinversion130.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.GetDebugMessages"; curl { ; Encoding; preserveLineEndings } ) 

**MBS**( **"CURL.GetDebugMessages";** /\* Returns the debug output of the transaction as text. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Encoding**; /\* Optional; The text encoding for result.   
Default is native. This function can also handle UTF-16 as well as UTF-16LE and UTF-16BE for little/big endian byte order.e.g. "UTF-8" \*/   
**$preserveLineEndings**) /\* Optional; Whether to change line endings to CR for FileMaker.  
By default (0) we change the line endings to CR, so FileMaker has no trouble.  
Pass 1 to keep whatever line endings are there.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| curl | The CURL session handle. | $curl |  |
| Encoding | The text encoding for result.    Default is native. This function can also handle UTF-16 as well as UTF-16LE and UTF-16BE for little/big endian byte order. | "UTF-8" | Optional |
| preserveLineEndings | Whether to change line endings to CR for FileMaker.   By default (0) we change the line endings to CR, so FileMaker has no trouble.   Pass 1 to keep whatever line endings are there. | 0 | Optional |

### Result

The messages as text or error.

### Description

Returns the debug output of the transaction as text.  
Use [CURL.SetOptionVerbose](CURLSetOptionVerbose.md) to enable debug messages.  
  
Plugin version 5.2 and newer replace newlines automatically for you to match what FileMaker uses (Mac line endings).  
See [CURL.SetDebugWithData](CURLSetDebugWithData.md), [CURL.SetDebugWithProgress](CURLSetDebugWithProgress.md) and [CURL.SetDebugWithTime](CURLSetDebugWithTime.md) to include data/time in the debug log.  
  
To view all options you set, use [CURL.Options](CURLOptions.md) function.  
### Examples

Get debug messages:

 MBS ("CURL.GetDebugMessages"; $curl )  
### See also

- [CURL.GetMQTTMessages](CURLGetMQTTMessages.md)
- [CURL.SetOptionUploadFlags](CURLSetOptionUploadFlags.md)
- [CURL.SetOptionVerbose](CURLSetOptionVerbose.md)
- [CURL.SetOptionWildCardMatch](CURLSetOptionWildCardMatch.md)
- [CURL.SetupAWS](CURLSetupAWS.md)
- [CURL.SetupOAuth](CURLSetupOAuth.md)
- [CURL.UseSystemCertificates](CURLUseSystemCertificates.md)
- [CURL.WebSocketSend](CURLWebSocketSend.md)
- [Folders.SystemTemporary](FoldersSystemTemporary.md)
- [GMImage.Scale](GMImageScale.md)

### Release notes

- **Version 13.0**
    - Added [CURL.GetDebugMessages](https://www.mbsplugins.eu/CURLGetDebugMessages.shtml) to replace deprecated [CURL.GetDebugAsText](https://www.mbsplugins.eu/CURLGetDebugAsText.shtml), but old name will stay around for a long time.

### Example Databases

- [ChatGPT](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/ChatGPT.shtml#2ScriptAnchor_)
- [CURL/Amazon S3/Amazon S3 Buckets](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Amazon%20S3/Amazon%20S3%20Buckets.shtml#1ScriptAnchor_)
- [CURL/CURL Certificate Pinning](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/CURL%20Certificate%20Pinning.shtml#1ScriptAnchor_)
- [CURL/Email/Email Client](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/Email%20Client.shtml#3ScriptAnchor_)
- [CURL/Email/IMAP Email List](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/IMAP%20Email%20List.shtml#1ScriptAnchor_)
- [CURL/SFTP/CURL sFTP Upload File](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/SFTP/CURL%20sFTP%20Upload%20File.shtml#1ScriptAnchor_)
- [CURL/WebServices/Google Maps API/Google Maps API](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/Google%20Maps%20API/Google%20Maps%20API.shtml#1ScriptAnchor_)
- [CURL/WebServices/Twilio API Send SMS Json](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/Twilio%20API%20Send%20SMS%20Json.shtml#1ScriptAnchor_)
- [CURL/WebServices/WeatherBit.io test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/WeatherBit.io%20test.shtml#1ScriptAnchor_)
- [WebViewer/WebViewer Images](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WebViewer/WebViewer%20Images.shtml#2ScriptAnchor_)

### Blog Entries

- [IMAP Upload Flags](https://www.mbsplugins.de/archive/2025-06-17/IMAP_Upload_Flags/monkeybreadsoftware_blog_filemaker)
- [Send SMS with Amazon web service](https://www.mbsplugins.de/archive/2025-01-20/Send_SMS_with_Amazon_web_servi/monkeybreadsoftware_blog_filemaker)
- [Using ChatGPT in FileMaker](https://www.mbsplugins.de/archive/2024-10-16/Using_ChatGPT_in_FileMaker/monkeybreadsoftware_blog_filemaker)
- [Adding ChatGPT to the ScriptWorkspace context menu](https://www.mbsplugins.de/archive/2024-09-18/Adding_ChatGPT_to_the_ScriptWo/monkeybreadsoftware_blog_filemaker)
- [MQTT in FileMaker](https://www.mbsplugins.de/archive/2024-06-25/MQTT_in_FileMaker/monkeybreadsoftware_blog_filemaker)
- [Parallel network transfers with MBS Plugin](https://www.mbsplugins.de/archive/2023-12-18/Parallel_network_transfers_wit/monkeybreadsoftware_blog_filemaker)
- [How long do you wait for Insert From URL to finish?](https://www.mbsplugins.de/archive/2023-10-10/How_long_do_you_wait_for_Inser/monkeybreadsoftware_blog_filemaker)
- [How to use Trace](https://www.mbsplugins.de/archive/2023-07-15/How_to_use_Trace/monkeybreadsoftware_blog_filemaker)
- [SFTP Upload with temporary file](https://www.mbsplugins.de/archive/2023-03-06/SFTP_Upload_with_temporary_fil/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.0pr6](https://www.mbsplugins.de/archive/2023-01-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2025, Seite 22](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)

This function checks for a license.

Created 3th January 2023 , last changed 3th January 2023

  
[CURL.GetDebugLength](CURLGetDebugLength.md) - [CURL.GetDebugWithData](CURLGetDebugWithData.md)

[HTML Version](CURLGetDebugMessages.shtml)