DELETE method request from AC | Community
Skip to main content
February 6, 2019
Solved

DELETE method request from AC

  • February 6, 2019
  • 1 reply
  • 1101 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

Hi,

Use curl with execCommand() instead.

Thanks,

-Jon

1 reply

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
February 6, 2019

Hi,

Use curl with execCommand() instead.

Thanks,

-Jon