I checked the differences in the dicovery headers of the Intel Light device and the Cyperlink Demo Light device. Basically the only main difference is that some of the header tags are written in Lower case. I checked this with the UPnP specification and there it is clearly written that the header tags are case sensitive and all of them are defined upper case. Is this a bug in Cyperlink?
Would you mind to quote the section of the UPnP Specification which states that SSDP Header name is case-sensitive?
If you're right that's a bug that will be fixed :)
Stefano "Kismet" Lenzi
Sure, no problem. I found this in the following document: UPnP-DeviceArchitecture-v1.0.pdf
In section 1.2 there is the following sentence just before the explanation of each header element:
"Listed below are details for the request line and headers appearing in the listing above. All header values are case sensitive except where noted."
If you agree about that I'll open a BugReport.
I will try to ask to the UPnP Forum for further clarification, because considering that SSDP is "transported" (or extension) by HTTP and HTTP uses case-insensitive header name but case-sensitive header value I think that the quoted sentence refers only to the value part of the header line( the part of the line following the colon character ':' ).
Follow some example for clarification:
Example A - Header-line are equal
Example B - Header-line are different
Example C - Header-line are different they differ only in value
I had a chance to ask to UPnP Forum and they confirmed my thought :) So all the example that I post you in my previous message were correct!
So there is no reason to open a Bug because the SSDP Header generated by Cyberlink are complaint to the UPnP Specification
Hi Kusis, Stefano,
I ask to UPnP forum here the answer.
--------- answer ------
The answer to your question is YES. Within HTTP (and SSDP) headers, the field-name IS NOT case-sensitive, but the field-value IS case-sensitive.
Toby Nixon | Senior Standards Program Manager | Windows Device Platform Group | Microsoft Corporation
email@example.com | www.microsoft.com/rally | V: +1 425 706 2792 | M: +1 206 790 6377 | F: +1 425 708 4811
From: firstname.lastname@example.org [mailto:email@example.com] On Behalf Of Francesco Furfari
Sent: Wednesday, January 09, 2008 12:54 PM
Subject: Question about case sensitive headers
the UPnP-DeviceArchitecture-v1.0 in the section 1.2 (Discovery: Search)
pg. 19 states:
"Listed below are details for the request line and headers appearing in
the listing above. All header values are case sensitive except where noted."
Considering an header as:
header = field-name ":" [ field-value ]
Does the quoted *all header values* refer to the field-value?
In other words are the following headers
Thanks in advance,