CERN server authenication??
Ku Kam Ming (kmku@hkusua.hku.hk)
Wed, 2 Apr 1997 15:04:41 +0800 (HKT)
HI,
I encountered a problem. I wrote a script to automate the login to
a CERN server:
my $ua = new LWP::UserAgent;
my $req = new HTTP::Request GET => 'http://www.ei.org/village/';
$req->header(Authorization => 'Basic ' .
MIME::Base64::encode("$user:$passwd",''));
print $ua->request($req)->as_string;
It works fine for the first time every day (returns the HTML file). But
not for the rest of a day (alreay auth.??) and returns:
--- HTTP::Response=HASH(0x2570d4) ---
RC: 200 (OK)
Message: Document follows
Date: Wed, 02 Apr 1997 06:57:50 GMT
Server: CERN/3.0A
Content-Length: 5535
Content-Type: text/html
Client-Date: Wed, 02 Apr 1997 06:54:52 GMT
-----------------------------------
What's the problem? I would like to know when the login timeout?
Thanks in advance,
--
**********************************************************************
Kam-ming Ku (kmku) Big-5:[UA] GB: ~{9K=uCw~}
Main Library, Email : kmku@hkucc.hku.hk
The University of Hong Kong, Tel. : (852) 2859-8068
Pokfulam Road, Hong Kong. Fax. : (852) 2858-9420
*********************************************************************