AnsweredAssumed Answered

DELETE method in Network Request

Question asked by relivez on Aug 27, 2020
Latest reply on Sep 1, 2020 by relivez

Hi all,

 

I have encountered something interesting situation which might be the bug or I am wrong in implementing.

The situation is, I am using App Framework Network Request to get relevant data from the server-side. In order to do that, I found that 'DELETE' method is not accepted raw body as below.

 

networkRequest.url = some_url

networkRequest.method = "DELETE"

networkRequest.send(JSON.stringify({"keyA":"valueB"})

 

in the above case, there no body has sent.

But, it'll be in when I change its method as 'POST' as below.

 

networkRequest.url = some_url

networkRequest.method = "POST"

networkRequest.send(JSON.stringify({"keyA":"valueB"})

 

I also checked that it's working(but it's not raw body) when I set as form-data as below.

 

networkRequest.url = some_url

networkRequest.method = "DELETE"

networkRequest.send({"keyA":"valueB"})

 

Have a check and let me know if you any.

Sean

Outcomes