Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: CrackURLChapter 19
Win32 Modules and Extensions
Next: Reference: DataReceiveTimeout
 

CreateURL

$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.


Previous: Reference: CrackURLPerl in a NutshellNext: Reference: DataReceiveTimeout
Reference: CrackURLBook IndexReference: DataReceiveTimeout