URI::URL(3) User Contributed Perl Documentation URI::URL(3)NAME
URI::URL - Uniform Resource Locators
SYNOPSIS
$u1 = URI::URL->new($str, $base);
$u2 = $u1->abs;
DESCRIPTION
This module is provided for backwards compatibility with modules that depend on the interface provided by the "URI::URL" class that used to
be distributed with the libwww-perl library.
The following differences exist compared to the "URI" class interface:
o The URI::URL module exports the url() function as an alternate constructor interface.
o The constructor takes an optional $base argument. The "URI::URL" class is a subclass of "URI::WithBase".
o The URI::URL->newlocal class method is the same as URI::file->new_abs.
o URI::URL::strict(1)
o $url->print_on method
o $url->crack method
o $url->full_path: same as ($uri->abs_path || "/")
o $url->netloc: same as $uri->authority
o $url->epath, $url->equery: same as $uri->path, $uri->query
o $url->path and $url->query pass unescaped strings.
o $url->path_components: same as $uri->path_segments (if you don't consider path segment parameters)
o $url->params and $url->eparams methods
o $url->base method. See URI::WithBase.
o $url->abs and $url->rel have an optional $base argument. See URI::WithBase.
o $url->frag: same as $uri->fragment
o $url->keywords: same as $uri->query_keywords
o $url->localpath and friends map to $uri->file.
o $url->address and $url->encoded822addr: same as $uri->to for mailto URI
o $url->groupart method for news URI
o $url->article: same as $uri->message
SEE ALSO
URI, URI::WithBase
COPYRIGHT
Copyright 1998-2000 Gisle Aas.
perl v5.12.5 2011-08-13 URI::URL(3)
Check Out this Related Man Page
URI::WithBase(3) User Contributed Perl Documentation URI::WithBase(3)NAME
URI::WithBase - URIs which remember their base
SYNOPSIS
$u1 = URI::WithBase->new($str, $base);
$u2 = $u1->abs;
$base = $u1->base;
$u1->base( $new_base )
DESCRIPTION
This module provides the "URI::WithBase" class. Objects of this class are like "URI" objects, but can keep their base too. The base
represents the context where this URI was found and can be used to absolutize or relativize the URI. All the methods described in URI are
supported for "URI::WithBase" objects.
The methods provided in addition to or modified from those of "URI" are:
$uri = URI::WithBase->new($str, [$base])
The constructor takes an optional base URI as the second argument. If provided, this argument initializes the base attribute.
$uri->base( [$new_base] )
Can be used to get or set the value of the base attribute. The return value, which is the old value, is a URI object or "undef".
$uri->abs( [$base_uri] )
The $base_uri argument is now made optional as the object carries its base with it. A new object is returned even if $uri is already
absolute (while plain URI objects simply return themselves in that case).
$uri->rel( [$base_uri] )
The $base_uri argument is now made optional as the object carries its base with it. A new object is always returned.
SEE ALSO
URI
COPYRIGHT
Copyright 1998-2002 Gisle Aas.
perl v5.18.2 2012-02-11 URI::WithBase(3)
Hi
In my code am openeing a mozilla in Solaris with some url using sytem(url)
this is working fine for most of the urls but for url of type-
www.abc.com?action=p&a=23
it is passing only www.abc.com?action=p to the browser & thus the url is not opening properly.
Why is system command... (7 Replies)
Hi,
I have a file with a URL text written in it within double quotes e.g.
"http://abcd.xyz.com/mno/somefile.dtd"
I want the above text to get replaced by a single space character.
I tried
cat File1.txt | sed -e 's/("http)*(dtd")/ /g' > File2.txt
But it didnt work out. Can someone... (5 Replies)
I am writing a small script to help me clean out my music (itunes) that has somehow doubled every song. Using the itunes.xml file, I have been able to create a simple list of all the files. The problem is itunes uses URL style formatting, ex. %20 for spaces. I used sed to convert %20 to a space... (5 Replies)
Hi All,
I want to do URL encoding using shell script in my project. I decided that the sed is the correct tool to do this. But I am unable achieve what I wanted using sed. kindly help me to get rid of this.
My requirement is , there will be one URL with all special character, spaces etc...
... (8 Replies)
hello all
Iam using this command to substitute the existing line with a # here
sed -i '/url-map = etc/url.c/ s/url-map = etc/url.c/#url-map = etc/url.c/' con.txt
while using this command iam getting errors like
sed: -e expression : Extra characters after command
Any suggestions on... (7 Replies)
Hi All,
I am using the below script to enter the URL at the end of file:
echo "Enter the URL that should point to the particular microsite"
read url
sed "$a $url" redirects.virgin-atlantic.com.conf > temp
But am getting the below error:
./script.sh:... (7 Replies)
hi guys- im trying to write a script to get both url and ip information. i think i can get it to work if i hardcode the url into the script, however what I rather have happen is the script ask the user to input a url. ive searched through the wget man and cant find anything there. i know this must... (5 Replies)
Hi Experts,
Problem statement :
We have an URL for which we need to read the data and get parsed inside the shell scripts.My Aix has very limited perl utility, i cant install any utility as well.
Precisely, wget,cURL,Lynx,w3m and Lwp cant be used as i got these utilities only when i googled it.... (12 Replies)
Hi,
I wish to check the return value for wget $url.
However, some urls are designed to take 45 minutes or more to return.
All i need to check if the URL can be reached or not using wget.
How can i get wget to return the value in a few seconds ? (8 Replies)
Hello everybody
I have been trying to extract the domain name from the bind query log with different options, however always get stuck with domains that end with link .co.uk or .co.nz.
I tried the following, however only provides the first level:
awk -F"." '{print $(NF-1)"."$NF}' list.txt >... (30 Replies)
i am executing below code to achive my result, but for second row the value is not coming
it should come URL like other two . url start with http:// and end with .xhtml
cat FILE | grep 'Test failed' | awk -F',' '{print $3,$8,$12}'
INPUT
1517679173303,84,SKILLED LANGUAGE - ENTER... (11 Replies)