Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: MLUG Members <EMAIL:PROTECTED>
- Subject: Re: [MLUG] perl/http auth question
- From: Rick <EMAIL:PROTECTED>
- Date: Tue, 09 Oct 2007 07:30:19 -0500
- Delivery-date: Tue, 09 Oct 2007 07:30:51 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=VBxAHeOQYRoYxdYemdq8hN7pEAoLg7jqQA3EBk4tocY=; b=HjEb+SzrWw8EDG/SvfSjqy7w7NqcHilNR47qAdD+1fBbsvrafl+6mTrqn4XQPLC5dlEhDxyAJkUApH8ngMidnOVYyVTfZrXFwU6nbp//06v7+xHbHk6Y/zAlKG4dPniWrpe1uyt4netX0mtHm+rn1bUFY4xCflBN7ej8TFSmjBs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=Q84eB7YmZhS1LAo5vs5qeBk+stS8PQrxVjMb+oCG349pqNW0jBsc5GRhyabjneGoTVY6L+DoOJKXTHm0FmgfIia0OBbb2lUS3NKQ0ACGEPSHbsRoUvTNx/Zd8AUoM5u/98b/VKrMgkrlyVWV7C2wXZWUDhubq5eUmeBcBTE6l68=
- Envelope-to: EMAIL:PROTECTED
- In-reply-to: <EMAIL:PROTECTED>
- References: <EMAIL:PROTECTED> <EMAIL:PROTECTED>
- Reply-to: MLUG Members <EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
For future reference, this is what I got to work (before I saw your
post):
my $userAgent = LWP::UserAgent->new(agent => '<agent identifying
string>');
$userAgent->credentials("<ip:port>","<login realm>",'username' =>
'password');
my $response = $userAgent->request(POST "$url",
Content_Type => 'text/xml',
Content => $message);
print $response->as_string;
But thanks for the suggestion.
Rick
On Mon, 2007-10-08 at 16:14 -0500, nowlind wrote:
> Not sure if this will help but this is what I use in a perl program that
> I wrote to login to my router. It is used in a dyndns updater:
>
> $browser->agent( $agent );
> $browser = LWP::UserAgent->new;
> $req = HTTP::Request->new(GET => $url);
> $req->authorization_basic($conf{"login"}, $conf{"password"});
> $responce = $browser->request($req);
> $code = $responce->code;
> $msg = $responce->message;
> $content = $responce->content;
> error_rtn("Error sending update: $code $msg $content") unless
> $browser->request($req)->is_success;
--
breakfast noir:
..."Without thinking, I crammed that deadly sliver of metal carrying the
city's most infamous breakfast food into my maw. The tiny flakes snapped
and popped, like the fingers of a mob snitch after they found 'im. It
wasn't good cereal. But it was better than a gut fulla led."
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members