Is there any way via AMPScript or SSJS to utilize HTTP methods outside of GET and POST?
I have had no problem utilizing these two via the HTTPPost() and HTTPGet() functions, but have not found any way to utilize any of the other methods - such as PUT, DELETE or PATCH.
The reason I ask is that I have inherited some script all in AMPscript that gathers, formats and separates the data/HTML for emails, but now we need to use PUT to update via REST API and I would rather not have to rewrite the whole thing or otherwise export this data and send to another system to run the REST call.
I also would prefer a non-clientside option as it is a major security risk - so no JavaScript/Ajax.
EDIT
I have found something that seems to hopefully point me in the right direction, but have had no luck myself yet.
The function is in SSJS as Script.Util.HttpRequest()
It shows the option to change the method, but as I said, I have not gotten this to work yet:
Additional Properties
contentType - String value indicating content type sent with requests using POST method
method - String value indicating HTTP method to use:
GET
DELETE
HEAD
OPTIONS
PATCH
POST
PUT
postData - String value indicating POST data sent with request - required for POST method