\ 4tH demonstration - Parse URL - Copyright 2022 J.L. Bezemer
\ You can redistribute this file and/or modify it under
\ the terms of the GNU General Public License

[PRAGMA] listurl
include lib/parseurl.4th

\ This program demonstrates the capabilities - and limitations - of PARSE-URL.
\ Know to fail are nested schemas and Uniform Resource Names.

s" jdbc:mysql://test_user:ouupppssss@localhost:3306/sakila?profileSQL=true" parse-url list-url cr
s" ftp://ftp.is.co.za/rfc/rfc1808.txt" parse-url list-url cr
s" http://www.ietf.org/rfc/rfc2396.txt#header1" parse-url list-url cr
s" ldap://[2001:db8::7]/c=GB?objectClass=one&objectClass=two" parse-url list-url cr
s" mailto:John.Doe@example.com" parse-url list-url cr
s" news:comp.infosystems.www.servers.unix" parse-url list-url cr
s" tel:+1-816-555-1212" parse-url list-url cr
s" telnet://192.0.2.16:80/" parse-url list-url cr
s" urn:oasis:names:specification:docbook:dtd:xml:4.1.2" parse-url list-url cr
s" foo://example.com:8042/over/there?name=ferret#nose" parse-url list-url cr
s" https://bob:pass@example.com/place" parse-url list-url cr
s" http://example.com/?a=1&b=2+2&c=3&c=4&d=%65%6e%63%6F%64%65%64" parse-url list-url cr
depth .
