Re: Cookies.pm netscape cookie format help.. Follow up

Russell Locke (rlocke@hbs.edu)
Tue, 8 Jun 1999 15:39:10 -0400


Thank you sir, may I have another...?

Follow up......

Everything is running on operating system Sun Solaris 2.6, perl 5, libwww
version 5.43.

require LWP::UserAgent;
use LWP::UserAgent;
LWP::Debug::level('+debug');
$ua=new LWP::UserAgent;
if ($opt_k) {
    &dbg("\n*** Doing opt_k $opt_k\n");
    require HTTP::Cookies;
    use HTTP::Cookies;
    $cookie_jar = HTTP::Cookies::Netscape->new(File => $opt_k);
    $ua->cookie_jar($cookie_jar);
    $cs = $cookie_jar->as_string();
    &dbg("\n*** Showing cookies $cs ***\n");
}
$req = HTTP::Request->new(GET => $url);
$req->authorization_basic(@_) if(@_);
$ua->agent($spoof) if($spoof);
my $res = $ua->request($req);
$code=$res->code;
$contyp=$res->header('content-type');
$cont=$res->content;

- Russ


At 3:06 PM -0400 6/8/99, Kingpin wrote:
>What operating system are you running Java on?
>What operating system are you running perl on?
>What version of perl?
>What version of libwww / HTTP::Cookies?
>Show us your perl code, we don't give a flying bleep what you java code
>looks like!?!
>
>--
> - - Martin "Kingpin" Thurn                    mthurn@tasc.com
>     Research Software Engineer           (703) 793-3700 x2651
>     The Information Refinery              http://tir.tasc.com
>     TASC, Inc.                            http://www.tasc.com
>
>Don't blame me.  I'm an interpreter.  I'm not supposed to know a power
>socket from a computer terminal. -- C-3PO, The Empire Strikes Back


---------------------------------------------------
Of course I don't look busy - I did it right the first time.
---------------------------------------------------

Russell Locke
ITG - Software Engineering

EMail: rlocke@hbs.edu
Phone: 617.495.6994
Fax: 603.688.6053
Internet: www.people.hbs.edu/rlocke

Harvard Business School
Cotting 213
Soldiers Field Rd.
Boston, Massachusetts 02163
USA