在没有实体主体的情况下执行HTTP POST被认为是不好的做法吗? [英] Is it considered bad practice to perform HTTP POST without entity body?

查看:99
本文介绍了在没有实体主体的情况下执行HTTP POST被认为是不好的做法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要调用一个不需要用户输入的进程,只需要一个触发器。我计划在没有正文的情况下使用POST / uri来触发进程。我想知道从HTTP和REST角度看这是否被认为是坏的?

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 this is considered bad from both HTTP and REST perspectives?

推荐答案

我问这个问题。简短的回答是,是的,没关系,但我建议阅读该主题以获取更多细节。

I asked this question on the IETF HTTP working group a few months ago. The short answer is, yes it is OK, but I suggest reading the thread for more details.

这篇关于在没有实体主体的情况下执行HTTP POST被认为是不好的做法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆