Type:Uri: Difference between revisions

From Resonite Wiki
Added IPv6 info.
Added more information about IPv6 (loopback).
Line 15: Line 15:


=== Port Numbers ===
=== Port Numbers ===
When entered correctly, port numbers can be added to the URI string like this: <code><nowiki>http://127.0.0.1:5000</nowiki></code>
When entered correctly, port numbers can be added to the URI string like this: <code><nowiki>http://127.0.0.1:5000/</nowiki></code>
* (TODO: Why is <code><nowiki>http://127.0.0.1:80</nowiki></code> not valid? Might need "https")
* (TODO: Why is <code><nowiki>http://127.0.0.1:80/</nowiki></code> not valid? Might need "https")


=== HTTP/HTTPS ===
=== HTTP/HTTPS ===
Line 24: Line 24:
For imputing an IPv6 in a URI field, here is what it should look like:
For imputing an IPv6 in a URI field, here is what it should look like:
* <code><nowiki>http://[2a12:4946:9900::f00]/</nowiki></code>
* <code><nowiki>http://[2a12:4946:9900::f00]/</nowiki></code>
* <code><nowiki>http://[0:0:0:0:0:0:0:1]</nowiki></code> or <code><nowiki>http://[::1]</nowiki></code> (loopback address)
* <code><nowiki>http://[0000:0000:0000:0000:0000:0000:0000:0001]</nowiki></code>, <code><nowiki>http://[0:0:0:0:0:0:0:1]</nowiki></code>, or <code><nowiki>http://[::1]</nowiki></code> (loopback address)
 
{{Note|Doing any loopback address in IPv6 will auto compress it into <code><nowiki>http://[::1]</nowiki></code> for you.|information}}


== See Also ==
== See Also ==

Revision as of 16:21, 15 September 2024

A Uri Is similar to a URL string. URI is known as a Uniform Resource Identifier, and is used to identify assets and their locations rather than a webpage or site. Since website images are assets in Resonite, URLs are commonly misconceived as being URIs.

Technical

Input And Fields

When typing into any field of this type, make sure that it is formatted correctly or it will fail, examples include:

  • http://www.google.com/
  • http://127.0.0.1/
  • http://127.0.0.1/

Inputs that will fail if entered like this (or revert back to the last known valid input, including null):

  • www.google.com
  • 127.0.0.1
  • localhost

Port Numbers

When entered correctly, port numbers can be added to the URI string like this: http://127.0.0.1:5000/

  • (TODO: Why is http://127.0.0.1:80/ not valid? Might need "https")

HTTP/HTTPS

Both http and https while part of the URI string is valid.

IPv6

For imputing an IPv6 in a URI field, here is what it should look like:

  • http://[2a12:4946:9900::f00]/
  • http://[0000:0000:0000:0000:0000:0000:0000:0001], http://[0:0:0:0:0:0:0:1], or http://[::1] (loopback address)
Doing any loopback address in IPv6 will auto compress it into http://[::1] for you.

See Also