Is it considered bad practice to perform HTTP POST without entity body?

后端 未结 6 884
粉色の甜心
粉色の甜心 2020-12-12 13:58

I need to invoke a process which doesn\'t require any input from the user, just a trigger. I plan to use POST /uri without a body to trigger the process. I want to know if t

6条回答
  •  孤城傲影
    2020-12-12 14:42

    I asked this question on the IETF HTTP working group a few months ago. The short answer is: NO, it's not a bad practice (but I suggest reading the thread for more details).

提交回复
热议问题