Giter VIP home page Giter VIP logo

Comments (5)

louaybassbouss avatar louaybassbouss commented on May 23, 2024

according to UPnP Device Architecture v1.1, section 1.1 SSDP message format:

All SSDP messages MUST be formatted according to RFC 2616 section 4.1 “generic message”. SSDP messages MUST have a startline and a list of message header fields. SSDP messages SHOULD NOT have a message body. If a SSDP message is received with a message body, the message body MAY be ignored.

from openscreenprotocol.

mfoltzgoogle avatar mfoltzgoogle commented on May 23, 2024

Does uPnP mandate a transfer-encoding for the message?

from openscreenprotocol.

tomoyukilabs avatar tomoyukilabs commented on May 23, 2024

@mfoltzgoogle Though UPnP Device Architecture mentions Transfer-Encoding (as an optional feature for HTTP/1.1), a Transfer-Encoding does not appear in Section 1. Discovery (i.e. SSDP).

from openscreenprotocol.

mfoltzgoogle avatar mfoltzgoogle commented on May 23, 2024

I did some tracking of this. The short answer for SSDP is "not simply."

SSDP adopts the RFC 2616 message format from HTTP 1.0 [1] which technically allows ISO-8859-1 in header values (although only ASCII is guaranteed to work across implementations.) Non-ASCII values (i.e., UTF-8) should use MIME encoding [2], basically quoted-printable or base64.

[1] https://www.ietf.org/rfc/rfc2616
[2] https://www.ietf.org/rfc/rfc2047

base64 is simpler and universally supported. So if we want to include the friendly name in the SSDP response, it should be base64 encoded.

from openscreenprotocol.

mfoltzgoogle avatar mfoltzgoogle commented on May 23, 2024

Closing as we are not using SSDP.

from openscreenprotocol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.