Re: Extracting Titles from Multiple URLs

2001-12-04 Thread Gisle Aas
Francis Turner [EMAIL PROTECTED] writes: Alternatively if gethostbyname gives long delays for no obvious reason how about using net::DNS::resolver instead? That one always seems fast to me assuming you send to a DNS that exists I have not really tried it myself, but the BUGS section of

Re: libwww-perl 5.62 'make test' failures

2001-11-27 Thread Gisle Aas
Edward Avis [EMAIL PROTECTED] writes: root@voxel23 ~/libwww-perl-5.62 # perl -Ilib -MLWP::Authen::Digest -e1 Can't locate MD5.pm in @INC (@INC contains: lib /homes/epa98/lib/perl5 /homes/epa98/lib/perl5/5.6.0/i586-linux /homes/epa98/lib/perl5/5.6.0 /homes/epa98/lib/perl5/5.6.0/i386-linux

Re: libwww-perl 5.62 'make test' failures

2001-11-27 Thread Gisle Aas
Gisle Aas [EMAIL PROTECTED] writes: So, then, why did jigsaw-te fail? Is it because you don't have the Compress::Zlib module installed? I just checked in the following patch: Index: Makefile.PL === RCS file: /cvsroot/libwww

Re: Can't read from a page

2001-11-23 Thread Gisle Aas
Gustaf Bergstr? [EMAIL PROTECTED] writes: No problem with that, but now I want to get som data from this page too: http://www.geocaching.com/seek/cache_details.asp?ID=10420 and it is impossible! When the script tries to access the page, it gets an error page (which you normally

Re: Conflict between CGI and LWP modules

2001-11-20 Thread Gisle Aas
KEVIN ZEMBOWER [EMAIL PROTECTED] writes: In diagnosing a problem, I've discovered that this program: #!/usr/local/bin/perl use CGI qw/:standard/; use LWP::Simple ; causes this error: Prototype mismatch: sub main::head vs ($) at ./z.pl line 3 If I change the program to:

Re: [PATCH] backward compat for 5.005_03 (Re: libwww-perl-5.61)

2001-11-20 Thread Gisle Aas
Gisle Aas [EMAIL PROTECTED] writes: Still need to figure out why connect fails for me on this test with perl5.005 ... With this patch is seems to work fine on perl5.005: Index: lib/Net/HTTP/Methods.pm === RCS file: /cvsroot

Re: UTF-16 - UTF-8

2001-11-20 Thread Gisle Aas
Tim Scott [EMAIL PROTECTED] writes: I saw your reference to the use of Unicode::String. Excuse me for asking, but does it work? We've tried to several funtions from it (utf16, ucs2,...) but the only one that seems to work is utf8? Can you give me a test case that demonstrates what you mean

Re: [PATCH] new warning Useless use of sort in scalar context

2001-11-19 Thread Gisle Aas
Rafael Garcia-Suarez [EMAIL PROTECTED] writes: Perl currently optimizes sort() in scalar context to do nothing. Would it not make sense to make it do something instead. I suggest it should return the first element (after sorting). It would make sense to optimize this so that it does not

perlbench

2001-11-19 Thread Gisle Aas
With all this perlbench activity going on, I wished somebody had the time to contribute more tests. The perlbench coverage as of today is nothing to be proud of. If somebody wants to take over the module then that would be fine too. Regards, Gisle

[ID 20011116.125] $a = undef; print $a\n; does not warn

2001-11-16 Thread Gisle Aas
This is a bug report for perl from [EMAIL PROTECTED], generated with the help of perlbug 1.33 running under perl v5.6.1. - [Please enter your report here] #!/usr/bin/perl use warnings; $a = undef; print $a, \n; # gives a warning

Re: HTTP::Headers-remove_header patch

2001-11-14 Thread Gisle Aas
I have now changed remove_header to return the field values removed and in scalar context the number of fields removed. --- Headers.pm 2001/04/12 06:50:28 1.41 +++ Headers.pm 2001/11/15 06:17:42 1.42 @@ -170,19 +198,31 @@ sub init_header =item $h-remove_header($field,...) + +This

Re: Google denies libwww-perl

2001-11-14 Thread Gisle Aas
Tatsuhiko Miyagawa [EMAIL PROTECTED] writes: Google seems to deny access via LWP, so live/google.t fails. I guess the rule is $Header{'User-Agent'} =~ /libwww-perl/ I will remove the 't/live/google.t' from the distribution. It appears they did not like it. Note that Google is very confused

Re: HTTP::Headers-remove_header patch

2001-11-14 Thread Gisle Aas
Blair Zajac [EMAIL PROTECTED] writes: Gisle Aas wrote: Blair Zajac [EMAIL PROTECTED] writes: I'm working on some code where it would be handy to know the number of removed HTTP headers with the HTTP::Headers-remove_header method. Here's a small patch returns the number

Re: keep alive update

2001-11-08 Thread Gisle Aas
Bill Moseley [EMAIL PROTECTED] writes: Looking at some older code I see I was jumping through hoops for keep alives. What I want is a way to nicely handle the situation where keep alive support isn't available for the current LWP installation. if ( $server-keep_alive ) {

Re: lwp-request https

2001-11-06 Thread Gisle Aas
Feng, James [EMAIL PROTECTED] writes: I used lwp to get a https site and I got an error Error:500 read failed:. According to the error code 500, it is a internal server error however I can get the site by using browser. I have Crypt::SSLeay installed. You should tell us: - what site are

Re: Chunked request transfer-encoding in LWP

2001-11-06 Thread Gisle Aas
Rodent of Unusual Size [EMAIL PROTECTED] writes: Gisle Aas wrote: Then your CPAN must be stale. It is on CPAN. It was upload almost 2 weeks ago. http://search.cpan.org/search?dist=libwww-perl Yrrg. Got it; Duke.Edu was stale. Next question: how may I verify in my script

Re: POST and multipart/form-data

2001-10-30 Thread Gisle Aas
Andrea Bisio [EMAIL PROTECTED] writes: Does anybody can tell me how to write a client for submitting data to a form with method post and encoding type=multipart/form-data? I could not find a class in the library to manage such kind of things You should look at the HTTP::Request::Common

Re: [soaplite] (Perl) WWW-Authenticate: NTLM using Soap or Soap::Lite?

2001-10-26 Thread Gisle Aas
Dana Powers [EMAIL PROTECTED] writes: This is a transport issue, and not impacted by SOAP as far as I can tell - it would need to be implemented at the LWP level, and I havent been able to find any exisiting implementations. The module that you'd need is LWP::Authen::NTLM.pm. If you're

Re: LWP 5.53_97 with Crypt::SSLeay-0.31

2001-10-26 Thread Gisle Aas
Michael Thompson [EMAIL PROTECTED] writes: Yes, I encountered that error, too. I traced the problem to _new_socket() in LWP::Protocol::http11 which was putting the socket in non-blocking mode. This would sometimes cause reads to return EAGAIN, which not everything is prepared for. Below is

Re: HTTP::Cookies rejects cookies from host a.b for domain .a.b

2001-10-26 Thread Gisle Aas
Alexandre Duret-Lutz [EMAIL PROTECTED] writes: I'm writing an HTTP client for SourceForge using LWP (libwww-perl 5.53). I need to login to SourceForge by POSTing a form, to get an identification cookie before further processing. The trouble is that the (queried) host 'sourceforge.net'

Re: URI bug

2001-10-26 Thread Gisle Aas
[EMAIL PROTECTED] (Randal L. Schwartz) writes: me-01 == me-01 [EMAIL PROTECTED] writes: me-01 Hi, me-01 URI::Escape uses the following code to set a subs function in uri_escape: me-01 if (defined $patn){ me-01unless (exists $subst{$patn}) { me-01# Because we

Re: Can't locate object method host via package URI::mailto

2001-10-26 Thread Gisle Aas
[EMAIL PROTECTED] (Randal L. Schwartz) writes: Bill == Bill Moseley [EMAIL PROTECTED] writes: Bill At 02:22 PM 10/01/01 -0700, Randal L. Schwartz wrote: Heh. I've asked for that a few times. See the bottom of a few of my columns (google for site:stonehenge.com mailto::host;). Linux

Re: [PATCH] PERL_MM_USE_DEFAULT

2001-10-19 Thread Gisle Aas
Michael G Schwern [EMAIL PROTECTED] writes: On Fri, Oct 19, 2001 at 04:46:02PM -0700, Gisle Aas wrote: +=item PERL_MM_USE_DEFAULT + +If set to a true value then MakeMaker's prompt function will +always return the default without waiting for user input. Very useful, just one question

Re: [PATCH] proposal : put the @INC-hooks directly in %INC

2001-09-19 Thread Gisle Aas
Rafael Garcia-Suarez [EMAIL PROTECTED] writes: I'm still not entirely satisfied with the coderef-in-@INC feature. So, before it gets documented into a production release : currently, when a module is loaded via a hook in @INC, the string '/loader/0x81095c8/Foo.pm' is set as the

Re: {,m}

2001-09-14 Thread Gisle Aas
Jeff 'japhy/Marillion' Pinyan [EMAIL PROTECTED] writes: On Sep 14, Jarkko Hietaniemi said: NOTE: The regular expression language in the Perl Programming Language [Perl] does not include a quantifier of the form S{,m), since it is logically equivalent to S{0,m}. We have, therefore, left

Re: PASS URI-1.16 cygwin-multi 1.3.2(0.3932)

2001-09-12 Thread Gisle Aas
Gerrit Haase [EMAIL PROTECTED] writes: This distribution has been tested as part of the cpan-testers effort to test as many new uploads to CPAN as possible. See http://testers.cpan.org/ Please cc any replies to [EMAIL PROTECTED] to keep other test volunteers informed and to prevent any