-
Suggestion
-
Resolution: Unresolved
-
None
-
None
Issue Summary
There are cases in which it would be useful for customers to be able to format the data inside Custom data field of the Send web request action. For example, an application may require a Carriage Return/Line Feed (\r\n) between lines, but the data sent contains only Line Feeds (\n).
Steps to Reproduce
For the case mentioned above, we can do the following:
- Create an automation with a Send web request action
- Enable org.apache.http.wire in the logs and set it to TRACE
- Put some data in the Custom data box, including line breaks between text
- Trigger the automation
In the logs we see Line Feeds at the end of each line of text
2024-06-28 09:31:07,357+0000 automation-webhook-sender:thread-1 DEBUG [o.apache.http.wire] http-outgoing-278 >> "-----d368b292[\n]" 2024-06-28 09:31:07,357+0000 automation-webhook-sender:thread-1 DEBUG [o.apache.http.wire] http-outgoing-278 >> "Content-Disposition: form-data; name="token"[\n]" 2024-06-28 09:31:07,358+0000 automation-webhook-sender:thread-1 DEBUG [o.apache.http.wire] http-outgoing-278 >> "[\n]"
and there is no apparent way to change this to a preferred character.
Workaround
Depending on customer needs, it may be possible to create a custom field and then use string manipulations via smart values, but this is not appropriate in all cases.