For faster navigation, this Iframe is preloading the Wikiwand page for 超文本咖啡壶控制协议.

超文本咖啡壶控制协议

由HTCPCP协议所控制的咖啡壶

超文本咖啡壶控制协议(英語:Hyper Text Coffee Pot Control Protocol,缩写HTCPCP)是由IETF虚构的一种协议。这个协议在文档RFC 2324[1](1998年4月1日发布)中定义,是一个恶搞RFC

该协议被设计为一个类似HTTP的协议,可以用于控制、监测和诊断咖啡壶,后来也被拓展到茶壶;该协议有时也可以视作一种早期的物联网实验。

起源

尽管互联网国际标准机构经常在4月1日(愚人节)发布一些恶搞之作,他们还是让这个协议看上去像是一个真的、非虚构的协议(就像HTTP)。

兼容性

  • 文本编辑器Emacs完全兼容这个协议[2]
  • 有数个bug报告抱怨说Mozilla不支持这个协议[3]

后续扩展

2014年4月1日发布的恶搞RFC 7168是此协议的扩展,正式支持茶壶。[4]

请求方式定义

HTCPCP是HTTP协议的扩展。HTCPCP请求通过URI架构coffee:来引用,并还包含了若干种HTTP请求:

  • BREWPOST:令HTCPCP服务器(咖啡壶)煮咖啡。
  • GET:从服务器获取咖啡。
  • PROPFIND:获取咖啡的元数据
  • WHEN:让服务器停止向咖啡中加入牛奶(如适用),即英文“say when”之意。

错误应答

这个协议还定义了两种错误答复:

  • 406 Not Acceptable(无法接受):HTCPCP服务器因故暂时不能煮咖啡。服务器在回复中应当包含一组可接受的咖啡类型列表。
  • 418 I'm a teapot(我是茶壶):HTCPCP服务器是一个茶壶。這個錯誤答覆可能是由一個又矮又胖英语I'm a Little Teapot的東西(也就是茶壺)發出的。

相关条目

参考资料

  1. ^ IETF. Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0). 1998-04-01 [2009-01-22]. (原始内容存档于2021-05-15). (英文)
  2. ^ Emacs Wiki. Coffe Mode. 2013-08-04 [2013-08-04]. (原始内容存档于2023-01-21). (英文)
  3. ^ Eric Hodel. HTCPCP not supported (RFC2324). 2000-07-27 [2012-10-10]. (原始内容存档于2011-05-14). (英文)
  4. ^ Imran Nazar. The Hyper Text Coffee Pot Control Protocol for Tea Efflux Appliances (HTCPCP-TEA). 互联网工程任务组. [2021-05-22]. (原始内容存档于2014-05-29). (英文)

外部链接

{{bottomLinkPreText}} {{bottomLinkText}}
超文本咖啡壶控制协议
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?