this might be a silly question:
Does http use the user datagram protocol ever? for example if one is streaming a mp3 or a video over the web using http does it internally use UDP for the transportation?
this might be a silly question:
Does http use the user datagram protocol ever? for example if one is streaming a mp3 or a video over the web using http does it internally use UDP for the transportation?
No. Streaming does not use HTTP, even if HTTP might be used to request a stream, the stream itself does not use HTTP. Look up RTP.
Maybe just a bit of trivia, but UPnP will use HTTP formatted messages over UDP for device discovery.
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.
From RFC 2616:
HTTP communication usually takes place over TCP/IP connections. The default port is TCP 80, but other ports can be used. This does not preclude HTTP from being implemented on top of any other protocol on the Internet, or on other networks. HTTP only presumes a reliable transport; any protocol that provides such guarantees can be used; the mapping of the HTTP/1.1 request and response structures onto the transport data units of the protocol in question is outside the scope of this specification.
So although it doesn't explicitly say so, UDP is not used because it is not a "reliable transport".