parse(
url_str) ->parsed,err
Parse a URL into its component parts per RFC 2396
Decomposes a URL string into a table with the following fields
(all nil when absent):
scheme — e.g. "https"authority — e.g. "user:pass@host:443"userinfo — e.g. "user:pass"user — e.g. "user"password — e.g. "pass"host — e.g. "example.com" (IPv6 brackets stripped)port — e.g. "443" (string, not number)path — e.g. "/index.html"params — semicolon-separated parameters (RFC 2396 ;params)query — e.g. "key=val&foo=bar" (without leading ?)fragment — e.g. "section1" (without leading #)Returns nil, "invalid url" for empty or nil input.