Does HTTP use UDP?

前端 未结 14 1374
夕颜
夕颜 2020-11-29 18:12

This might be a silly question:

  • Does HTTP ever use the User Datagram Protocol?

For example:

If one is

14条回答
  •  北海茫月
    2020-11-29 18:38

    If you are streaming an mp3 or video that may not necessarily be over HTTP, in fact I'd be suprised if it was. It would probably be another protocol over TCP but I see no reason why you cannot stream over UDP.

    If you do you have to take into account that there is no certainty that your data will arrive at the other end, but I can take it that you know about UDP.

    To answer you question, No, HTTP does NOT use UDP. For what you talk about though, mp3/video streaming COULD happen over UDP and in my opinion should never happen over HTTP.

提交回复
热议问题