in reply to Re: HTTP::Request - authorization_basic
in thread HTTP::Request - authorization_basic
it works without problem when the credentials are correct. So there must be some authentication working.
When I comment out the line ..
my $req = HTTP::Request->new; $req->header('content-type' => 'application/json'); $req->header('accept' => 'application/json'); $req->method($par_httpmethod); #$req->authorization_basic($par_user,$par_pass); $req->uri($url_string); my $response = $ua->request($req);
.. I get the same error message.
regards
|
|---|