Skip Menu |
 

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 52156
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: news response "Server" header with leafnode 2
Date: Sun, 29 Nov 2009 08:59:25 +1100
To: bug-libwww-perl [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Download (untitled) / with headers
text/plain 544b
With debian packaged libwww-perl 5.834 and perl 5.10.1, the program foo.pl below prints 2.0.0.alpha20070602a, pleased to meet you! on a leafnode 2 news server, where I hoped it would have the name "Leafnode" in there. The string from $nntp->message, after Net::NNTP does "MODE READER", is Leafnode 2.0.0.alpha20070602a, pleased to meet you! but I see LWP::Protocol::nntp chops off the first word. Is there a reason for that? Perhaps it could only strip known superfluous first words, in the interests of not losing information.
Download foo.pl
text/x-perl 197b
use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new; my $resp = $ua->head('news://localhost/comp.lang.perl.misc'); my $server = $resp->header('Server'); print $server,"\n";


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.