Hi,
I use the function getstore($url,$file) of LWP::Simple.
is somebody know the equivalent function with LWP::UserAgent and HTTP::Request (because I need to identify myself and I can't do it with LWP::Simple) ?
thanks,
usually I use :
my $link = "http://www.pipo.com/pipo.xml";
my $document = get($link);
my $xp = XML::XPath->new(xml => $document);
but with the authentification :
$ua = LWP::UserAgent->new;
my $link = "http://www.pipo.com/pipo.xml";
$req = HTTP::Request->new(GET => $link)...
Hi,
It's a XML file that I want to Parse.
I try to use use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$req = HTTP::Request->new(GET => $link);
$req->authorization_basic('login', 'password');
$document = $ua->request($req)->as_string;
but ->as_string returns a text version of the document...
Hi,
I'm parsing a XML file with XML::XPath.
with a command like :
$data = $row->find('/Names/Name')->string_value;
But how can I extract
this data - 559 - in <Category ID="559" :
<CategoriesList>
<Category ID="559" UNCATID="45111601" Searchable="0" >
<ParentCategory ID="558">...
Hi,
I'm trying to install a unicode module called unicode::map8 but I have a warning :
WARNING : PREREQUISITE unicode::map8 0 not found
What does this mean ? and how can i avoid this ?
Thanks
Thanks a lot for your help,
I just begin with perl and i have some problems with the HTML::TokeParser.
I woul like to extract all ALT and SCR informations of the page.
I tried the following code :
use HTML::TokeParser;
$p = HTML::TokeParser->new("page.html") || die "Can't open";
while...
Hi,
I have a database (mysql) table of this type :
------------------------------------------------
code ## product ## URL_of_the_product_image
------------------------------------------------
ex : 124544 ## pen ## www.asiteweb.com/popo.JPEG...
Hi,
Finally the problem is upstream.
Before the process XML -> MySQL.
I use LWP::Simple to retrieve the XML file and store the XML String in a variable $document and then extract the data from $document with XML::Xpath.
The Problem is : the Special characters are missing in $document !!!
Any...
stevexff,
Thanks for your help, but the columns up is already set as NVARCHAR.
In Fact, the problem is probably not with the database cause if I enter the string manually (Paste) in the field, there is no trouble with the characters.
It seems that I loose my special characters during the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.