Re: LWP Problem

2007-03-29 Thread Mumia W.

On 03/29/2007 04:30 AM, quqi xiao wrote:

Hi,could anyone help me?
I found a problem when I visit my website,The website will show me like
this:
Software error:

Can't locate auto/LWP/UserAgent/cookie_jar.al in @INC (@INC contains:
../util/EZXAP_Net/LWP/blib/lib
/usr/local/apache2/htdocs/src/id/util/EZXAP_Net/LWP/lib
/usr/local/apache2/htdocs/src/id/util/EZXAP_Net/Net
/usr/local/apache2/htdocs/src/id/util/EZXAP_FLEX ../util/EZXAP_FLEX
../util/EZXAP_Net/Net ../util/EZXAP_Net
/usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/i686-linux
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .)
at /usr/local/apache2/htdocs/src/id/system/test.pl line 118

For help, please send mail to the webmaster ([EMAIL PROTECTED]), giving
this error message and the time and date of the error.

And when I remove the floder LWP in EZXAP_NET,everything is ok.But I
don't konw why.I think the program use the default LWP package in this
machine.

My question is what is cookie_jar.al?Where and When used this file?Is
this a *temporarily* file?I run find in root directory,but can not
find this file.It's so puzzled for me.Could anyone kindly answer this
quesion,Thanks a lot.With Best wishes.

QQ

2007-03-29



It is probably a conflict between the default LWP package and your own 
LWP package in EZXAP_NET; however, without seeing the code that 
generates this error, and without knowing what operating system this is, 
it's hard to say what the problem is.





Re: LWP Problem

2007-03-29 Thread Mumia W.

On 03/29/2007 12:18 PM, quqi xiao wrote:

2007/3/29, Mumia W. [EMAIL PROTECTED]:


On 03/29/2007 04:30 AM, quqi xiao wrote:
 Hi,could anyone help me?
 I found a problem when I visit my website,The website will show me like
 this:
 Software error:

 Can't locate auto/LWP/UserAgent/cookie_jar.al in @INC (@INC contains:
 ../util/EZXAP_Net/LWP/blib/lib
 /usr/local/apache2/htdocs/src/id/util/EZXAP_Net/LWP/lib
 /usr/local/apache2/htdocs/src/id/util/EZXAP_Net/Net
 /usr/local/apache2/htdocs/src/id/util/EZXAP_FLEX ../util/EZXAP_FLEX
 ../util/EZXAP_Net/Net ../util/EZXAP_Net
 /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8
 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux
 /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .)
 at /usr/local/apache2/htdocs/src/id/system/test.pl line 118

 For help, please send mail to the webmaster ([EMAIL PROTECTED]), giving
 this error message and the time and date of the error.

 And when I remove the floder LWP in EZXAP_NET,everything is ok.But I
 don't konw why.I think the program use the default LWP package in this
 machine.

 My question is what is cookie_jar.al?Where and When used this file?Is
 this a *temporarily* file?I run find in root directory,but can not
 find this file.It's so puzzled for me.Could anyone kindly answer this
 quesion,Thanks a lot.With Best wishes.

 QQ

 2007-03-29


It is probably a conflict between the default LWP package and your own
LWP package in EZXAP_NET; however, without seeing the code that
generates this error, and without knowing what operating system this is,
it's hard to say what the problem is.





Thanks for your reply.My own LWP package is a lower version than the 
default 
LWP.The operating system is Lunix + Apache.
Could you please tell me what's the usage of the cookie_jar.al? 
I find it from /,but noting could be found.(command:find / -name 
cookie_jar.al)





I don't know what cookie_jar.al is, but it most probably has something 
to do with the Autoloader (perldoc AutoLoader).


Why is it you want to use a lower version of LWP than the system?




Re: LWP problem

2003-07-23 Thread Michael A Chase
On Wed, 23 Jul 2003 06:33:21 - chimni [EMAIL PROTECTED] wrote:

   Firstly , i apologise about mailing you directly rather then using 
 th e list (i have no idea to join this archive).
  I have a problem with HTML::PARSER on hp-ux 11 .This somehow is 
 affecting my scripts that use LWP.
  I noticed a similar problem addressed to you by another 
 user .Therefore ,decide to write to you
 The HTML::Parser build 3.28 gives me the following erros during test
 
 Unrecognized identifier s in argspec at blib/lib/HTML/Parser.pm line 
 75.
 
 Any ideas why this happens.
 Pardon my ignorance ,i am newer than a newbie at this,but even if 
 there is a problem with this module why does it affect LWP.
 (LWP also failed tests with the same error)
 
 and a simple script like using LWP::simple and getting a webpage
 gives the srror 500 unrecognised identifier s in argspec 
 sorry for the bother.

I have forwarded this to [EMAIL PROTECTED]  Please continue there.
Other people in the list may be able to respond better and faster.

For them to help, a snippet from the failing script that demonstrates
the problem would help.  From a cursory look at the line mentioned in
the error, it appears you are passing an invalid argument to
HTML::Parser - new().

-- 
Mac :})
** I usually forward private questions to the appropriate mail list. **
Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



RE: LWP - problem with response

2000-07-13 Thread Pramod Sokke

That's what I'm saying too. When I use socket stuff directly, I get a good
response back.
But I'm trying to write a generic API using LWP and it works great for
everything except for this particular ASP script from this company.

At 11:38 AM 7/13/00 +1000, you wrote:
Hmmm.. Ive had a few similar probs in the past but I stumbled across this
bit of code, no idea if it'll help but basically it grabs the entire request
back from an ASP script and chucks it into $return_text, then just use some
reg exps to remove the rubbish, I hope I haven't chopped anything useful
from it, it's being used on a site at the moment so I had to remove the bits
that make it work for that project-

BEN

#!/usr/local/bin/perl

use sigtrap;
use IO::Socket;

$url="http://www.place.com/thing.asp";


my($return_text);
$url =~ m|(http://)?([^/]+)(/?.*)|;
$host = $2;
$uri = $3;
($host, $port) = split(':', $host);
$port = 80 if (!$port);
$remote = IO::Socket::INET-new( Proto = "tcp",
 PeerAddr  = $host,
 PeerPort  = "http($port)",
);
   
$remote-autoflush(1);
print $remote "GET $uri HTTP/1.0" . "\n\n";

while ( $remote ) 
{ 
$return_text .= $_; 
   }
close $remote;
return $return_text;

print "$return_text";
exit;

 -Original Message-
 From: Pramod Sokke [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 13 July 2000 10:14
 To: [EMAIL PROTECTED]
 Subject: LWP - problem with response
 
 
 Hi,
 
 There is this one ASP script from our client that I'm having problems
 getting a good result back using LWP.
 When I use low-level socket stuff to talk to the script and 
 do a simple
 http GET, it returns a result like :
 HTTP/1.1 200 Successful Membership Update
 Server: Microsoft-IIS/5.0
 Date: Wed, 12 Jul 2000 21:10:09 GMT
 Connection: Keep-Alive
 Content-Length: 0
 Content-Type: text/html
 Cache-control: private
 
 However, when I use LWP to talk to the script, I get a blank response.
 This problem is only with this particular script from this 
 particular client.
 Other ASP and CGI/Perl scripts from other clients return good results.
 
 Is there something that I could be missing on my end or is it 
 possible that
 it's their problem?
 
 Thanks,
 Pramod