Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

DELETE method request from AC

gabridguez
Level 1
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
wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

Use curl with execCommand() instead.

Thanks,

-Jon

View solution in original post

1 Reply
wodnicki
Correct answer by
Community Advisor
Community Advisor

Hi,

Use curl with execCommand() instead.

Thanks,

-Jon

View solution in original post