in reply to Re: Best practice for letting my CGI scripts access another password protected CGI script?
in thread Best practice for letting my CGI scripts access another password protected CGI script?

I think this is more of an LWP/credentials problem than a CGI problem. The system has about ten CGI scripts, but the only one that's giving problems is one that instantiates an LWP::UserAgent object and tries to call one of the other CGI scripts.

>check the logs

Well the logs are telling me that the request has no credentials associated with it, so time to look into that.
  • Comment on Re^2: Best practice for letting my CGI scripts access another password protected CGI script?

Replies are listed 'Best First'.
Re^3: Best practice for letting my CGI scripts access another password protected CGI script?
by Anonymous Monk on Oct 30, 2013 at 00:55 UTC

    Well the logs are telling me that the request has no credentials associated with it, so time to look into that.

    Looks that way :)

    use LWP; my $headers = HTTP::Headers->new(); $headers->authorization_basic('user', 'pass'); my $request = new HTTP::Request(GET => $url, $headers); $request->dump; __END__ GET - Authorization: Basic dXNlcjpwYXNz (no content)