in reply to Losing Credentials, Auth Basic and WWW::Mechanize

shouldn't
my @args = ( Authorization => "Basic ".MIME::Base64::encode($user.':'.$pw ) );
be
my %args= ('Authorization'=>"Basic".MIME::Base64::encode($user.':'.$pw +));

Replies are listed 'Best First'.
Re^2: Losing Credentials, and Stumped by WWW::Mechanize::Shell startup error.
by hesco (Deacon) on Nov 14, 2006 at 02:38 UTC
    Thanks for the idea, but no, that broke an otherwise working work-around I'm cobbling together. Apparently the protocol likes that space after 'Basic'.

    -- Hugh

    if( $lal && $lol ) { $life++; }
      sorry for the spelling mistake i meant to put a space after basic but i meant the fact your using a key value pair within an array as oppose to a hash.
        It seems happy with an array of one key/value pair there, actually. I've updated my earlier post and hope I have better framed an answerable question. Earlier I was dealing with multiple frustrations. I'd love to get WWW::Mechanize::Shell working, but unless that's a give-away, that's tangential to my real goal right now, which is to work out this authentication issue. Thanks for your help on this though. I appreciate the additional eyes on my code.

        if( $lal && $lol ) { $life++; }