news: - NNTP_SERVER environment variable vs. NNTPSERVER

2004-01-16 Thread Adam Sjøgren
  Hi.


The documentation for News Requests in LWP[1] mentions that you can't
specify the hostname of the webserver; it uses the environment
variable NNTP_SERVER.

LWP, however, relies on Net::NNTP to connect to the right server
when the hostname isn't specified, and Net::NNTP defaults to using the
environment variable NNTPSERVER[2] (and then some).

I don't know what the best way to resolve this is (changing the LWP
docs, having Net::NNTP try NNTP_SERVER if NNTPSERVER isn't set, or
something else), but it took me a little while to figure out why it
didn't work for me, so I thought I'd bring it up.


  Best regards, and thanks for all the modules,

   Adam

[1] http://search.cpan.org/~gaas/libwww-perl-5.76/lib/LWP.pm#News_Requests
[2] http://search.cpan.org/~gbarr/libnet-1.17/Net/NNTP.pm#CONSTRUCTOR

-- 
 My baby is my sun   Adam Sjøgren
  Not the burning one   [EMAIL PROTECTED]



Re: news: - NNTP_SERVER environment variable vs. NNTPSERVER

2004-01-16 Thread Adam Sjøgren
On Fri, 16 Jan 2004 11:49:10 +0100, Adam wrote:

 The documentation for News Requests in LWP[1] mentions that you
 can't specify the hostname of the webserver; it uses the

(webserver: please read newsserver.)


  Whoops,

-- 
 My baby is my sun   Adam Sjøgren
  Not the burning one   [EMAIL PROTECTED]