119 lines
3.5 KiB
HTML
119 lines
3.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of URI::URL</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>URI::URL</H1>
|
|
Section: User Contributed Perl Documentation (3pm)<BR>Updated: 2020-02-08<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
URI::URL - Uniform Resource Locators
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
|
|
|
|
<PRE>
|
|
$u1 = URI::URL->new($str, $base);
|
|
$u2 = $u1->abs;
|
|
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
This module is provided for backwards compatibility with modules that
|
|
depend on the interface provided by the <TT>"URI::URL"</TT> class that used to
|
|
be distributed with the libwww-perl library.
|
|
<P>
|
|
|
|
The following differences exist compared to the <TT>"URI"</TT> class interface:
|
|
<DL COMPACT>
|
|
<DT id="1">•<DD>
|
|
The <FONT SIZE="-1">URI::URL</FONT> module exports the <B>url()</B> function as an alternate
|
|
constructor interface.
|
|
<DT id="2">•<DD>
|
|
The constructor takes an optional <TT>$base</TT> argument. The <TT>"URI::URL"</TT>
|
|
class is a subclass of <TT>"URI::WithBase"</TT>.
|
|
<DT id="3">•<DD>
|
|
The <FONT SIZE="-1">URI::URL-</FONT>>newlocal class method is the same as URI::file->new_abs.
|
|
<DT id="4">•<DD>
|
|
<B><A HREF="/cgi-bin/man/man2html?1+URI::URL::strict">URI::URL::strict</A></B>(1)
|
|
<DT id="5">•<DD>
|
|
<TT>$url</TT>->print_on method
|
|
<DT id="6">•<DD>
|
|
<TT>$url</TT>->crack method
|
|
<DT id="7">•<DD>
|
|
<TT>$url</TT>->full_path: same as ($uri->abs_path || ``/'')
|
|
<DT id="8">•<DD>
|
|
<TT>$url</TT>->netloc: same as <TT>$uri</TT>->authority
|
|
<DT id="9">•<DD>
|
|
<TT>$url</TT>->epath, <TT>$url</TT>->equery: same as <TT>$uri</TT>->path, <TT>$uri</TT>->query
|
|
<DT id="10">•<DD>
|
|
<TT>$url</TT>->path and <TT>$url</TT>->query pass unescaped strings.
|
|
<DT id="11">•<DD>
|
|
<TT>$url</TT>->path_components: same as <TT>$uri</TT>->path_segments (if you don't
|
|
consider path segment parameters)
|
|
<DT id="12">•<DD>
|
|
<TT>$url</TT>->params and <TT>$url</TT>->eparams methods
|
|
<DT id="13">•<DD>
|
|
<TT>$url</TT>->base method. See URI::WithBase.
|
|
<DT id="14">•<DD>
|
|
<TT>$url</TT>->abs and <TT>$url</TT>->rel have an optional <TT>$base</TT> argument. See
|
|
URI::WithBase.
|
|
<DT id="15">•<DD>
|
|
<TT>$url</TT>->frag: same as <TT>$uri</TT>->fragment
|
|
<DT id="16">•<DD>
|
|
<TT>$url</TT>->keywords: same as <TT>$uri</TT>->query_keywords
|
|
<DT id="17">•<DD>
|
|
<TT>$url</TT>->localpath and friends map to <TT>$uri</TT>->file.
|
|
<DT id="18">•<DD>
|
|
<TT>$url</TT>->address and <TT>$url</TT>->encoded822addr: same as <TT>$uri</TT>->to for mailto <FONT SIZE="-1">URI</FONT>
|
|
<DT id="19">•<DD>
|
|
<TT>$url</TT>->groupart method for news <FONT SIZE="-1">URI</FONT>
|
|
<DT id="20">•<DD>
|
|
<TT>$url</TT>->article: same as <TT>$uri</TT>->message
|
|
</DL>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
<FONT SIZE="-1">URI</FONT>, URI::WithBase
|
|
<A NAME="lbAF"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright 1998-2000 Gisle Aas.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="21"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="22"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="23"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="24"><A HREF="#lbAE">SEE ALSO</A><DD>
|
|
<DT id="25"><A HREF="#lbAF">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:59 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|