in reply to Adding cookies into headers of LWP request

Hi,

Looking at the documentation (quick look as you're in a hurry) the follwoing code should be enough:

$dl_res = $ua->request( GET $Url, Cookie => 'ASP.NET_SessionId=xaduwqpg5ocnenpb0l0xsq4d; GMProfileInf +o=e=fis-mort-dev@banana.com', content=> [ %$asp_state ] );

assuming that you just ask how to incorporate the Cookie header.

Regards
McA

Replies are listed 'Best First'.
Re^2: Adding cookies into headers of LWP request
by Loops (Curate) on Sep 25, 2014 at 15:45 UTC

    You're right. Although the code as given in the original example wont work. From my reading and a quick test, "Content" can only be used with the POST function and complains about not being passed a SCALAR with GET.