现在支持Mqtts
Now with Mqtts

原始链接: https://daniel.haxx.se/blog/2026/01/19/now-with-mqtts/

2020年,我们为curl添加了MQTT支持。当curl 8.19.0版本在2026年3月初发布时,我们还添加了MQTTS,即通过TLS安全完成的MQTT。这使curl支持的传输协议数量增加到29个,几乎在项目成立29周年之际。MQTT是什么?维基百科将其描述为一种轻量级、发布-订阅、机器对机器网络协议,用于消息队列/消息排队服务。它专为与资源受限或网络带宽有限的远程设备建立连接而设计,例如物联网(IoT)中。它必须在提供有序、无损、双向连接的传输协议上运行——通常是TCP/IP。即将减少的协议支持,如果一切按计划进行,支持的协议数量将很快减少,因为我们计划在2026年春季晚些时候删除RTMP。cURL和libcurl MQTT协议 TLS

最近的 Hacker News 讨论强调了 curl(一个流行的命令行数据传输工具)新增了对 MQTTs 的支持。这尤其有用,因为 Bambu Lab 打印机使用带有 TLS 的 MQTT,可能简化了无需复杂编码即可发送打印任务的操作。 对话还涉及了 curl 移除 RTMP 支持,尽管 RTMP 正在式微,但仍被广泛使用。用户对 curl 总体上支持的协议数量感到惊讶——包括电子邮件,认为这对于该工具来说是一个有些意想不到的功能。此次更新扩展了 curl 的多功能性,并为与基于 MQTT 的设备交互提供了一个简化的解决方案。
相关文章

原文

Back in 2020 we added MQTT support to curl.

When curl 8.19.0 ships in the beginning of March 2026, we have also added MQTTS; meaning MQTT done securely over TLS.

This bumps the number of supported transfer protocols to 29 not too long after the project turned 29 years old.

What’s MQTT?

Wikipedia describes it as a lightweight, publish–subscribe, machine-to-machine network protocol for message queue/message queuing service. It is designed for connections with remote locations that have devices with resource constraints or limited network bandwidth, such as in the Internet of things (IoT). It must run over a transport protocol that provides ordered, lossless, bi-directional connections—typically, TCP/IP.

Coming protocol support reduction

If things go as planned, the number of supported protocols will decrease soon as we have RTMP scheduled for removal later in the spring of 2026.

联系我们 contact @ memedata.com