[fixed] HttpServer doesn't accept '.' in HTTP headers, but DLNA spec requires it (1 Viewer)

McGoober

Retired Team Member
  • Premium Supporter
  • August 13, 2006
    122
    105
    Cambridge, UK
    Home Country
    United Kingdom United Kingdom
    Found whilst getting my Sony Bravia KDL-40NX713 telly to talk to MediaPortal ResourceAccessModule.

    When setting (via UPnP) the resource URL on the telly, the telly makes a request to the given URL for information. It sends the following message...

    Code:
    HEAD /GetResource?ResourcePath=XXXXXX HTTP/1.1
    getcontentFeatures.dlna.org: 1
    X-AV-Physical-Unit-Info: pa="BRAVIA KDL-40NX713";
    X-AV-Client-Info: av="5.0"; cn="Sony Corporation"; mn="BRAVIA KDL-40NX713"; mv="1.7";
    Host: XXX.XXX.XXX.XXX:3132

    The message received back from MediaPortal is this...

    Code:
    HTTP/1.0 400 BadRequest: Invalid character in header name on line 2

    HttpServer is rejecting the '.' in the header name. Since this is a DLNA required feature, please could the code be changed to allow '.' in the headers.
     

    Users who are viewing this thread

    Top Bottom