Appendix B. URI Examples (URI-Beispiele)
Appendix B. URI Examples (URI-Beispiele)
Die folgenden Beispiele demonstrieren verschiedene Sätze von Uri-Optionen und das Ergebnis nach der Konstruktion eines URI aus diesen. Zusätzlich zu den Optionen bezieht sich Section 6.5 auf die Ziel-IP-Adresse und den Port, aber nicht alle Pfade des Algorithmus führen dazu, dass die Ziel-IP-Adresse und der Port in den URI aufgenommen werden.
Beispiel 1:
- Input (Eingabe):
Destination IP Address = [2001:db8::2:1]
Destination UDP Port = 5683
- Output (Ausgabe):
coap://[2001:db8::2:1]/
Beispiel 2:
- Input (Eingabe):
Destination IP Address = [2001:db8::2:1]
Destination UDP Port = 5683
Uri-Host = "example.net"
- Output (Ausgabe):
coap://example.net/
Beispiel 3:
- Input (Eingabe):
Destination IP Address = [2001:db8::2:1]
Destination UDP Port = 5683
Uri-Host = "example.net"
Uri-Path = ".well-known"
Uri-Path = "core"
- Output (Ausgabe):
coap://example.net/.well-known/core
Beispiel 4:
- Input (Eingabe):
Destination IP Address = [2001:db8::2:1]
Destination UDP Port = 5683
Uri-Host = "xn--18j4d.example"
Uri-Path = the string composed of the Unicode characters U+3053
U+3093 U+306b U+3061 U+306f, usually represented in UTF-8 as
E38193E38293E381ABE381A1E381AF hexadecimal
- Output (Ausgabe):
coap://xn--18j4d.example/
%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF
(Der Zeilenumbruch wurde zur besseren Lesbarkeit eingefügt; er ist nicht Teil des URI.)
Beispiel 5:
- Input (Eingabe):
Destination IP Address = 198.51.100.1
Destination UDP Port = 61616
Uri-Path = ""
Uri-Path = "/"
Uri-Path = ""
Uri-Path = ""
Uri-Query = "//"
Uri-Query = "?&"
- Output (Ausgabe):
coap://198.51.100.1:61616//%2F//?%2F%2F&?%26