Questions tagged [libwww-perl]

"Library for WWW in Perl" (libwww-perl) is a set of Perl modules that give Perl programming easy access to sending requests to the World Wide Web. libwww-perl provides an application programming interface to an HTTP client as well as a number of HTML utilities, and standard objects to represent HTTP requests and responses.

10 questions
5
votes
1 answer

Difference between Apache rules to block libwww-perl

I want to know the difference between these rules and which is most effective to block libwww-perl with the file .htaccess SetEnvIfNoCase User-Agent "libwww-perl" bad_bot Order Deny,Allow Deny from env=bad_bot or RewriteCond %{HTTP_USER_AGENT}…
Yasmina Saraya
  • 95
  • 1
  • 1
  • 4
2
votes
2 answers

«HTTP::Message content must be bytes» error when trying to post

I have the following code: ... sub setImage { my $self=shift; my $filename=shift; unless(-r $filename) { warn "File $filename not found"; return; } my $imgn=shift; my $operation=&URI::Escape::uri_escape_utf8( …
ZyX
  • 52,536
  • 7
  • 114
  • 135
1
vote
1 answer

LWP::Simple::get changes encoding

I suppose I am using LWP::Simple::get incorrectly, but I am at my wit's end as to how to correct it. My first try was a simple perl -e 'use LWP::Simple; print get("http://localhost/wtf.txt");' , but that did not work. wtf.txt contains a single…
user2845840
  • 360
  • 3
  • 9
1
vote
1 answer

html2ps + ImageMagick + libwww-perl not working together

Summary: I am using html2ps to convert an html document with inline images. (I have both ImageMagick and libwww-perl installed.) If the images are local, this works fine; however, when the images are given through a URL, I just see [IMAGE] instead…
Kittsil
  • 2,349
  • 13
  • 22
0
votes
2 answers

Why does HTTP::Message::decodable complain about "Can't use an undefined value as a HASH reference"?

I'm getting a Can't use an undefined value as a HASH reference error trying to call HTTP::Message::decodable() using Perl 5.10 / libwww installed on Debian Lenny OS using the aptitude package manager. I'm really stuck so would appreciate some help…
scarba05
  • 2,943
  • 1
  • 27
  • 29
0
votes
1 answer

Web Crawler issue in perl

I had built a web crawler in Perl. I am using HTML::ContentExtractor LWP::UserAgent HTML::LinkExtor to extract text form webpages. Reference link for sample code web cralwer perl Issue: The issue is that it does not get text from web pages…
Nagaraju
  • 1,853
  • 2
  • 27
  • 46
0
votes
1 answer

Error when receiving post from libwww-perl to IIS / ASP.NET

I'm trying to recieve a post from a web service to a URL on IIS 7.5. It's like the request is being rejected before it even gets to .NET. I've tried it with an ASP.NET MVC action or a pure .ASPX file. This is the request coming through: 2012-11-29…
Chris Barry
  • 4,564
  • 7
  • 54
  • 89
-2
votes
1 answer

Gettting Error 500 when trying Get from website using lwp::useragent

Someone help me with this using lwp::Useragent please my $mech = WWW::Mechanize->new(autocheck => 0); $mech->get($url); my $content=$mech->content; but getting Error 500 when trying to get https://camelcamelcamel.com/
Sugumar
  • 25
  • 8
-2
votes
1 answer

perl Can't locate object method query_form via package LWP::UserAgent

I'm creating a script with thread so I had to rebuild perl (perl5.20) with threads support. Since I have rebuild perl, I have an error : Can't locate object method "query_form" via package "LWP::UserAgent" I've tried to re-install LWP::UserAgent,…
nefas
  • 1,120
  • 7
  • 16
-4
votes
2 answers

How to check whether libwww-perl is installed or not in my server

How to check whether libwww-perl is installed or not in my server. And also tell me what is the use of libwwww-perl. How to remove this if we remove what are the things going to affect. libwww-perl is connected with perl modules or lighttpd.
Kavirajan ST
  • 49
  • 1
  • 6