0 Пользователей и 1 Гость просматривают эту тему.
use strict;use LWP; my $browser = LWP::UserAgent->new;$browser->credentials( \'127.0.0.1:8889\', \'Realm\', \'admin\' => \'admin\' ); my $url= \'http://127.0.0.1:8889/admin/security/processNewUser.jsp?currentEditRealm=Realm&user=v&fullName=v&description=v&email=v&password=v&confirmPassword=v&accountDisabled=ON&passwordLife=expire&expireTime=3&enableBlank=minValue&minLength=1\'; my $response = $browser->get($url); die "Error: ", $response->header(\'WWW-Authenticate\') || \'Error accessing\', "\\n ", $response->status_line, "\\n at $url\\n Aborting" unless $response->is_success;
Error: Basic realm="Realm" 401 Unauthorized at [url]http://10.0.1.139:8889/admin/security/processNewUser.jsp?currentEditRealm=Realm&user=v&fullName=v&description=v&email=v&password=v&confirmPassword=v&accountDisabled=ON&passwordLife=expire&expireTime=3&enableBlank=minValue&minLength=1[/url] Aborting at test1.pl line 20.
vladsu:А Вы уверены, что используете с реалм?
NeoNox:лучше на ты, ок?
This is perl, v5.8.4 built for MSWin32-x86-multi-threadBinary build 810 provided by ActiveState Corp. [url]http://www.ActiveState.com[/url]
vladsu:Да этот работает
NeoNox:отследить ошибку не с клиентской стороны а со стороны Том Кэта