[Live-devel] Getting request headers in RTSPServer
Ross Finlayson
finlayson at live555.com
Sun Feb 21 14:12:10 PST 2021
> On Feb 21, 2021, at 1:58 PM, Idan Freiberg <idan at tokagroup.com> wrote:
>
> Hello,
>
> Is it possible to fetch or extract RTSP requests headers such as DESCRIBE/OPTIONS/... like getting the *full* URL passed to the server, eg. DESCRIBE rtsp://<host>/params (including the host part) ?
>
> What’s the best way to achieve this?
For “DESCRIBE”: Note that the virtual function “RTSPServer::handleCmd_DESCRIBE()” takes a parameter “fullRequestStr”, which will be the complete RTSP “DESCRIBE” request. You could subclass the class “RTSPServer”, and, in your subclass, reimplement “RTSPServer::handleCmd_DESCRIBE()” to do whatever you want with “fullRequestStr” (and then call “RTSPServer:: handleCmd_DESCRIBE()” to do the real work).
But a better question is: Why specifically do you want to do this? What information do you think is in these RTSP requests that you feel our existing server implementation is not already using the way you want?
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list