Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

DELETE method request from AC

Avatar

Level 1

Hi everyone,

I am trying to use the HttpClientRequest object to request something to an API. When I use the POST method to create elements in the API, it works fine, but when I have to delete something I need to use the DELETE method. The request parameters are exactly the same, just change the POST method for a DELETE method, and in the delete request, I get an error. Checking the Rest server logs, I have found that, in the body of the request, as the first character, there is an EOF character.

For some reason, AC has added that character there. These API calls are working fine from other environments (E.g.: using postman).

Does someone know why this is happening? Or does someone know a workaround for this?

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

Use curl with execCommand() instead.

Thanks,

-Jon

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

Use curl with execCommand() instead.

Thanks,

-Jon