Name
CreateURL
Synopsis
$inet
->CreateURL(scheme
,hostname
,port
,username
,password
,path
,extrainfo
, [flags
]) $inet
->CreateURL($hashref
, [flags
])
Creates a URL from its component parts. Returns
undef
on error and the
created URL if successful. If you pass a hash reference, the
following values are taken from the array:
%hash=( "scheme" => "scheme", "hostname" => "hostname", "port" => port, "username" => "username", "password" => "password", "path" => "path", "extrainfo" => "extrainfo", );
If you don’t specify a flags parameter, ICU_ESCAPE
will be used by default;
for the other possible values of
flags
, refer to the Microsoft Win32
Internet Functions documentation.
Get Perl in a Nutshell, 2nd Edition 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.