Add URL tools
asg017 opened this issue · 0 comments
asg017 commented
Maybe another package?
- query parameters,
url_query_parameters
- host, path
- scheme
- username/password
http_url("https", "acs.ca.gov", "/path/to/file",
http_url_query_parameters(
"q", "books",
"_format", "json",
"timeout", 1500
)
)
http_url_domain('https://www.dir.ca.gov/cac/cac.html') -- 'www.dir.ca.gov'
http_url_tld('https://www.dir.ca.gov/cac/cac.html') -- 'ca.gov'
http_url_path('https://www.dir.ca.gov/cac/cac.html') -- '/cac/cac.html'
http_url_fragment('') -- ''
http_url_query_params('') -- ''