Is it possible to get the HTTP server headers for URL streams opened with op_open_url, op_vopen_url? If not, is there an alternative that I can use get get the headers? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20130821/08162909/attachment.htm
alpha thinktink wrote:> Is it possible to get the HTTP server headers for URL streams opened > with op_open_url, op_vopen_url? If not, is there an alternative that I > can use get get the headers?There isn't. This gets complicated by the fact that for redirects or proxy connections, there may be multiple sets of headers per request, and for seekable streams there may be lots of requests, each with their own set of headers. The library also destructively modifies these headers during parsing. What information do you need from them?
Timothy B. Terriberry wrote:> What information do you need from them?After a bit of back-and-forth off-list, we were able to agree on a useful set: https://git.xiph.org/?p=opusfile.git;h=9791791469b2;a=commitdiff If there's any more headers people want, speak up before the next release. It'll be a little cumbersome to add more later.