http://www.perlmonks.org?node_id=460338


in reply to Re: Passing a cookie with LWP::UserAgent
in thread Passing a cookie with LWP::UserAgent

I'm attempting to do exactly the same thing with no luck.

To clarify: I have a cgi script which attempts to access another cgi script via lwp. The second script does userauthentication using a cookie. So does the first one. Both use the same cookie for authentication. So what I need to do is extract the cookie from the cgi in the first script so that I can pass it to through the HTTP::Request to the second script.

The above code looks like it should work, but doesn't. Can anyone offer advice on this?