Name
CrackURL
Synopsis
$inet
->CrackURL(URL
, [flags
])
Description
Splits a URL into its component parts and returns them in an array. Returns undef
on error.
The array will contain the following values:
(scheme, host, port, username, password, path, extrainfo).
For example, the URL http://www.divinf.it/index.html#top can be split into:
http, www.divinf.it, 80, anonymous, dada@divinf.it, /index.html, #top
If you don’t specify a flags parameter, ICU_ESCAPE
will be used by default; for
the possible values of flags refer to the Microsoft Win32 Internet Functions documentation.
Get Perl in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.