Todd Bain
04/13/2022, 8:19 PM<cfhttp url="<https://hooks.slack.com/services/BLAH/BLAH/BLAHHHHHHHH>" method="POST" result="test">
<cfhttpparam type="header" name="Content-Type" value="application/json">
<cfhttpparam type="body" value="data { display_information: {name: {Bot}} {text: {Test}}}">
</cfhttp>
bdw429s
04/13/2022, 8:23 PMTodd Bain
04/13/2022, 8:24 PMTodd Bain
04/13/2022, 9:18 PM<cfscript>
var_message = serializeJSON({text="testing"});
</cfscript>
<cfhttp url="#Slack_URL#" method="POST" result="objGet">
<cfhttpparam type="header" name="Content-Type" value="application/json">
<cfhttpparam type="body" value="#var_message#">
</cfhttp>
<cfoutput><cfdump var="#objGet#"></cfoutput>
Which returns:
struct
Charset [empty string]
ErrorDetail I/O Exception: peer not authenticated
Filecontent Connection Failure
Header [empty string]
MimetypeUnable to determine MIME type of file.
Responseheader struct [empty]
Statuscode Connection Failure. Status code unavailable.
Text YES
Have a feeling this has to do with a ssl error even though i've keytool into the cacerts file the slack ssl cert. Isn't the first time I've had trouble with it on this old box.
Do appreciate the code examplebdw429s
04/13/2022, 9:19 PMTodd Bain
04/13/2022, 9:19 PMbdw429s
04/13/2022, 9:19 PMTodd Bain
04/13/2022, 9:20 PMTodd Bain
04/13/2022, 9:20 PMTodd Bain
04/13/2022, 9:20 PMbdw429s
04/13/2022, 9:20 PMbdw429s
04/13/2022, 9:21 PMTodd Bain
04/13/2022, 9:21 PM