Section Internet
Internet functions.
Summary
Return type | Function and summary |
---|---|
table | SplitUrl(string url) Split an URL into protocol, host, path, query and anchor. |
Function
SplitUrl(string url)
Split an URL into protocol, host, path, query and anchor.
Parameter | Type | Default | Description |
---|---|---|---|
url | string | url |
- Return
- table: Table t with following structure for https://www.myriad-online.com/cgi-bin/bbs/YaBB.pl?board=MYRSCRIPT;action=display;num=1652718688#2
t.Protocol = "https" t.Host = "www.myriad-online.com" t.Path = "cgi-bin/bbs/YaBB.pl" t.Query = "board=MYRSCRIPT;action=display;num=1652718688" t.Anchor = "2"
Some of these field may be empty string ornil
- Error
- if url is
nil
or empty string