Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
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;
Rick wrote:
I've got a script that I'm re-writing in perl to post a set of XML to a
location. My question is what is the (best?) method to do this when the
location I'm posting to requires authentication? Is there a best method?
I keep seeing references to an HTTP::Request->authentication_basic
method, but can't seem to find much information about using it for a
POST.
Anyone have a suggestion?
Rick
--
Daniel Nowlin
DataCenter
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members