There seems to be a bug in LWP which causes a warning in
HTML::HeadParser on fetched web documents which contain utf-8 encoded
data in the header section.
Example:
use strict;
use LWP;
use 5.008;
my $url = 'http://perlmeister.com/test/utf8.html';
my $ua =
to a message I posted last year:
http://www.nntp.perl.org/group/perl.libwww/2006/08/msg6801.html
although there were no responses at the time.
Verified with perl 5.8.5, HTML::Parser 3.56 and libwww 5.805.
Is there known workarounds or fixes?
-- Mike
Mike Schilli
[EMAIL PROTECTED]
On Fri, 12 Sep 2008, Jan Buchholz wrote:
does anybody know, i could restrict the download bandwidth with
LWP::UserAgent.
Use a slowing proxy server? Download
http://perlmeister.com/snapshots/200105/scripts/slowie.pl
and start
$ slowie.pl
Server listening at port 8018
then configure
Just noticed that all debug functions have been removed from LWP in
5.822.
They were quite useful, because they allowed to take a peek at the inner
workings of a HTTP request cycle and let users make educated guesses on
which parts the code spent the most time in.
Looks like they have been
/value of the submit
button and just sends
?t=1.
Is this intentional or an oversight?
-- Mike
Mike Schilli
lib...@perlmeister.com
P.S.:
So I turned to the libwww test suite and looked at t/html/form.t:
$f = HTML::Form-parse('EOT', http://localhost/;);
form
input type
On Mon, 10 Aug 2009, Gisle Aas wrote:
Both current Safari and Firefox seem to send x=xy=y when
clicking on the image.
I see, I was using the test form
form
input type=submit value=Upload it! name=n
input type=image alt=Foo
input type=text name=t value=1
/form
On Mon, 10 Aug 2009, Gisle Aas wrote:
HTML::Form supported both these by calling either -make_request or
-click method. If all modern browsers agree that the button value
should always be passed we should change as well.
Interesting, both click() and make_request() yield the same result
here,
On Tue, 11 Aug 2009, Gisle Aas wrote:
print $f-click-as_string, \n;
print $f-make_request-as_string, \n;
That's cheating :). Leave out the first click() and check what
make_request() by itself gets you.
Looks like the preceding click() has some mysterious side effect on
the subsequent
On Tue, 11 Aug 2009, Gisle Aas wrote:
Do you think HTML::Form should treat a input type=image differently
based on the presence of the src= attribute? Does modern browsers
just ignore input type=image without a src= (that is treat them as
if they were disabled)?
Not sure ... but I'm okay
On Wed, 12 Aug 2009, Gisle Aas wrote:
I don't see that here. click() and make_request() seem independent.
click() is just a wrapper for make_request() that makes the
first/given submit/image active.
Ok, I retested this and it looks perfectly ok now. Might have been due
to an upgrade from an
is installed (Crypt::, Net::,
what-have-you)?
Can someone post package requirements code to guarantee that the
script performs all the SSL checks a browser runs (host name check, root
cert check, etc.), given that libwww version X and SSL module Y are
installed, regardless of what else
On Fri, 14 Mar 2014, Tim Hoke wrote:
Are there any plans to publish a new release of LWP?
I'd like to pick up this change:
Me too! I've been waiting for this pull request to be accepted for six
months now:
https://github.com/libwww-perl/http-message/pull/9
Anything I can help
On Tue, 18 Mar 2014, Gisle Aas wrote:
Sure. Do you want to do the release yourself? If you give me your
github user name I can add you to the https://github.com/libwww-perl
group and then set up co-maint on CPAN.
Sounds great, both my github and cpan ID is mschilli, I'll be happy to
take
On Wed, 19 Mar 2014, Gisle Aas wrote:
Both of you now belong to the libwww-perl org on github.
Giving away permissions on CPAN was a lot of work since it appears I to have
to give it away for each module individually. I think I've now added Mike
as co-maint on all the LWP modules. Please let
Until recently, I've not even noticed that data I get back from
libwww/UserAgent/simple_request has all beginning whitespace stripped from lines.
At first I thought it was the default behavior when getting content returned
when using the LWP::UserAgent/simple_request classes.
But I stepped
Hi.
How can I get system date of file via HTTP protocol.
Thank You.
Ivan Lulukyan.
Hi All,
I'm really new to perl and as usual in our business world I have to be
productive while I still learn.
I'm running checks in IOT over REST API's and I saw that my script using the
LWP::UserAgent::Determined is generating loads of useless syn in case of
outages:
If I have a small
Hi, Maybe this helps:https://docstore.mik.ua/orelly/perl4/lperl/ch14_07.htm
I think you can "catch" the signal sent by system to cleanly exit.
Maybe you can then combine this with the following:
https://perldoc.perl.org/functions/kill.html
That should allow you to remove the child processes as
18 matches
Mail list logo