LWP: Warning with utf8 data in HTML head section

2006-08-02 Thread libwww
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 = LWP::UserAgent->new

libwww utf8 woes

2007-02-20 Thread libwww
at .../LWP/Protocol.pm line 114. which seems to be related 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]

Re: restrict download bandwidth

2008-09-12 Thread libwww
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 L

Debug functions removed in 5.822?

2008-12-09 Thread libwww
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 repla

HTML::Form not submitting submit button name/value

2009-08-05 Thread libwww
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/";); EOT #$f->dump;

Re: HTML::Form not submitting submit button name/value

2009-08-10 Thread libwww
On Mon, 10 Aug 2009, Gisle Aas wrote: Both current Safari and Firefox seem to send x=&y= when clicking on the image. I see, I was using the test form from the t/html/form.t test suite. When clicking on the submit button, no x or y parameters are set. If you

Re: HTML::Form not submitting submit button name/value

2009-08-10 Thread libwww
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

Re: HTML::Form not submitting submit button name/value

2009-08-11 Thread libwww
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

Re: HTML::Form not submitting submit button name/value

2009-08-11 Thread libwww
On Tue, 11 Aug 2009, Gisle Aas wrote: Do you think HTML::Form should treat a differently based on the presence of the src= attribute? Does modern browsers just ignore without a src= (that is treat them as if they were disabled)? Not sure ... but I'm okay with the way it is right now, I was

Re: HTML::Form not submitting submit button name/value

2009-08-14 Thread libwww
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 e

Re: Issue with cert checking

2010-08-11 Thread libwww
odule 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 wha

Re: Release plans?

2014-03-15 Thread libwww
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 he

Re: Release plans?

2014-03-19 Thread libwww
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 b

Re: Release plans?

2014-03-20 Thread libwww
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.  Pleas

Beginning of line whitespace removal

2003-08-02 Thread paul-libwww
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 i

Date of file via HTTP

2000-03-09 Thread LIBWWW mailing list
Hi. How can I get system date of file via HTTP protocol. Thank You. Ivan Lulukyan.

LWP::UserAgent Change socket attributes

2020-05-29 Thread Bernard CLABOTS via libwww
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 g

[RE] How to kill/restart a HTTP::Daemon perl script properly.

2020-06-03 Thread Bernard CLABOTS via libwww
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 w