HTTP 使用 UDP 吗? [英] Does HTTP use UDP?

查看:9
本文介绍了HTTP 使用 UDP 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个愚蠢的问题:

This might be a silly question:

  • HTTP 是否曾经使用过用户数据报协议?

例如:

如果使用 HTTP 流式传输 MP3 或视频,它是否在内部使用 UDP 进行传输?

If one is streaming MP3 or video using HTTP, does it internally use UDP for transport?

推荐答案

通常不会.

流式传输很少通过 HTTP 本身使用,HTTP 很少通过 UDP 运行.但是,请参阅 RTP.

Streaming is seldom used over HTTP itself, and HTTP is seldom run over UDP. See, however, RTP.

作为您的示例(在评论中),您没有显示资源协议.如果该协议是 HTTP,那么我不会将访问称为流式传输";即使它在某种意义上是因为它通过网络连续发送(可能很大)资源.通常,资源会在播放前保存到本地磁盘,因此网络传输不是通常所说的流式传输".

For something as your example (in the comment), you're not showing a protocol for the resource. If that protocol were to be HTTP, then I wouldn't call the access "streaming"; even if it in some sense of the word is since it's sending a (possibly large) resource serially over a network. Typically, the resource will be saved to local disk before being played back, so the network transfer is not what's usually meant by "streaming".

不过,正如评论者所指出的,通过 HTTP 进行流式传输当然是可能的,而且这是由一些人完成的.

As commenters have pointed out, though, it's certainly possible to really stream over HTTP, and that's done by some.

这篇关于HTTP 使用 UDP 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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