in reply to Sending HTTP credentials with SOAP
{ # a block just to scope "no warnings" no warnings qw(redefine); *LWP::UserAgent::get_basic_credentials = sub { my ($user, $password); # remove user from option if called, to force prompting for a +user # name the next time print "URL requires authorization.\n"; if (not $user = delete $opt{user}) { print 'User name:'; ReadMode 1; $user = ReadLine(); ReadMode 0; chomp $user; }; if (not $password = delete $opt{password}) { print 'Password:'; ReadMode 2; $password = ReadLine; ReadMode 0; chomp $password; }; return ($user, $password); }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sending HTTP credentials with SOAP
by Corion (Patriarch) on Mar 17, 2010 at 08:42 UTC | |
by Anonymous Monk on Mar 17, 2010 at 09:13 UTC | |
by astroboy (Chaplain) on Mar 17, 2010 at 19:49 UTC | |
|
Re^2: Sending HTTP credentials with SOAP
by astroboy (Chaplain) on Mar 17, 2010 at 19:46 UTC |