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

2004-01-11 Thread Octavian Rasnita
I guess is a bug in URI library because I use that piece of code, and I also
use the scheme (http://) for all the urls, and I often have that problem,
sometimes when using the cookies library, and sometimes when I use the URI
library directly.

Teddy

- Original Message - 
From: Andy Lester [EMAIL PROTECTED]
To: Ben Srour [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 10, 2004 1:24 AM
Subject: Re: Can't locate object method host via package URI::_generic


  Can't locate object method host via package URI::_generic at
  /usr/share/perl5/HTTP/Cookies.pm line 725.

 your URL is bad.  It's missing a http:// etc.

 xoxo,
 Andy

 -- 
 Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance





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

2004-01-11 Thread Andy Lester
 I guess is a bug in URI library because I use that piece of code, and I also
 use the scheme (http://) for all the urls, and I often have that problem,
 sometimes when using the cookies library, and sometimes when I use the URI
 library directly.

It's probably not a bug in URI, but if you can narrow it down to an
example that's not behaving correctly, please post it here.  Gisle will
be glad to take care of it.

xoa

-- 
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance


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

2004-01-11 Thread Gisle Aas
Ben Srour [EMAIL PROTECTED] writes:

 BTW: This is libwww-perl-5.69

lwp-5.72 contains a fix that might be relevant:

Requests for some non-HTTP URLs would fail if the cookie_jar
was enabled.  The HTTP::Cookies::add_cookie_header now ignore
non-HTTP requests.

The current on is 5.76.  Can you try to see if upgrading helps?

Regards,
Gisle


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

2004-01-09 Thread Ben Srour
BTW: This is libwww-perl-5.69

Ben

-- 
Ben Srour
[EMAIL PROTECTED]

On Fri, 9 Jan 2004, Ben Srour wrote:

 Hello,

 I'm trying to use Cookies with LWP and it does not seem to be working.
 I get the following error:

 Can't locate object method host via package URI::_generic at
 /usr/share/perl5/HTTP/Cookies.pm line 725.


 My cookie initialization looks like:
 $ua = LWP::UserAgent-new;
 $ua-agent(Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0  . $ua-agent);
 $ua-cookie_jar(HTTP::Cookies-new(file = cookies.txt, autosave = 1));
 And my request object is used as so:
 my $res = $ua-request(GET $url);


 I'm useing the following:
 use HTTP::Request::Common;
 use LWP::UserAgent;
 use HTTP::Cookies;
 use URI::_generic;


 Any help would be appreciated!

 Thanks
 Ben


 --
 Ben Srour
 [EMAIL PROTECTED]

 On 9 Jan 2004 [EMAIL PROTECTED] wrote:

  Hi! This is the ezmlm program. I'm managing the
  [EMAIL PROTECTED] mailing list.
 
  I'm working for my owner, who can be reached
  at [EMAIL PROTECTED]
 
  Acknowledgment: I have added the address
 
 [EMAIL PROTECTED]
 
  to the libwww mailing list.
 
  Welcome to [EMAIL PROTECTED]
 
  Please save this message so that you know the address you are
  subscribed under, in case you later want to unsubscribe or change your
  subscription address.
 
 
  --- Administrative commands for the libwww list ---
 
  I can handle administrative requests automatically. Please
  do not send them to the list address! Instead, send
  your message to the correct command address:
 
  To subscribe to the list, send a message to:
 [EMAIL PROTECTED]
 
  To remove your address from the list, send a message to:
 [EMAIL PROTECTED]
 
  Send mail to the following for info and FAQ for this list:
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
  Similar addresses exist for the digest list:
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
  To get messages 123 through 145 (a maximum of 100 per request), mail:
 [EMAIL PROTECTED]
 
  To get an index with subject and author for messages 123-456 , mail:
 [EMAIL PROTECTED]
 
  They are always returned as sets of 100, max 2000 per request,
  so you'll actually get 100-499.
 
  To receive all messages with the same subject as message 12345,
  send an empty message to:
 [EMAIL PROTECTED]
 
  The messages do not really need to be empty, but I will ignore
  their content. Only the ADDRESS you send to is important.
 
  You can start a subscription for an alternate address,
  for example [EMAIL PROTECTED], just add a hyphen and your
  address (with '=' instead of '@') after the command word:
  [EMAIL PROTECTED]
 
  To stop subscription for this address, mail:
  [EMAIL PROTECTED]
 
  In both cases, I'll send a confirmation message to that address. When
  you receive it, simply reply to it to complete your subscription.
 
  If despite following these instructions, you do not get the
  desired results, please contact my owner at
  [EMAIL PROTECTED] Please be patient, my owner is a
  lot slower than I am ;-)
 
  --- Enclosed is a copy of the request I received.
 
  Return-Path: [EMAIL PROTECTED]
  Received: (qmail 91691 invoked by uid 76); 9 Jan 2004 22:35:44 -
  Received: from [EMAIL PROTECTED] (HELO ran-out.mx.develooper.com) (64.81.84.115) 
  by onion.perl.org (qpsmtpd/0.26) with SMTP; Fri, 09 Jan 2004 14:35:44 -0800
  Received: (qmail 28963 invoked by uid 225); 9 Jan 2004 22:35:42 -
  Delivered-To: [EMAIL PROTECTED]
  Received: (qmail 28958 invoked by uid 507); 9 Jan 2004 22:35:42 -
  Received: from dukat.upl.cs.wisc.edu (HELO dukat.upl.cs.wisc.edu) (128.105.45.39) 
  by one.develooper.com (qpsmtpd/0.27-dev) with ESMTP; Fri, 09 Jan 2004 14:35:11 
  -0800
  Received: from data.upl.cs.wisc.edu (data.upl.cs.wisc.edu [128.105.45.42])  by 
  dukat.upl.cs.wisc.edu (Postfix) with ESMTP id 987D5A6C055for [EMAIL 
  PROTECTED]; Fri,  9 Jan 2004 16:35:09 -0600 (CST)
  Date: Fri, 9 Jan 2004 16:35:09 -0600 (CST)
  From: Ben Srour [EMAIL PROTECTED]
  X-X-Sender: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: confirm subscribe to [EMAIL PROTECTED]
  In-Reply-To: [EMAIL PROTECTED]
  Message-ID: [EMAIL PROTECTED]
  MIME-Version: 1.0
  Content-Type: TEXT/PLAIN; charset=US-ASCII
  X-Spam-Check-By: one.develooper.com
  X-Spam-Status: No, hits=0.6 required=7.0 
  tests=CARRIAGE_RETURNS,CLICK_BELOW,IN_REP_TO,QUOTED_EMAIL_TEXT,SPAM_PHRASE_05_08,TO_BE_REMOVED_REPLY,USER_AGENT_PINE
   version=2.44
  X-SMTPD: qpsmtpd/0.26, http://develooper.com/code/qpsmtpd/
 
 
 
  --
  Ben Srour
  [EMAIL PROTECTED]
 
  On 9 Jan 2004 [EMAIL PROTECTED] wrote:
 
   Hi! This is the ezmlm program. I'm managing the
   [EMAIL PROTECTED] mailing list.
  
   I'm working for my owner, who can be reached
   at [EMAIL PROTECTED]
  
   To confirm that you would like
  
  [EMAIL PROTECTED]
  
   added to the libwww mailing list, please send
   an empty reply to this address:
  
  [EMAIL PROTECTED]
  
   Usually, this happens when you just hit the reply