$response = $ua->request($request);
Also, after reading the lwpcookbook referenced in another post here, it appears I'm still doing more work than needed. Apparently, just attaching the cookie_jar to the UserAgent object does the job, thouhg I haven't actually tested this.
update: I probably had to do the extract and add because I was using simple_request, due to doing other things (referer, other headers in redirected requests.) I expect that folks using the the normal $ua->request methind can just do a $ua->cookie_jar(options..) and forget about it.
--Bob Niederman, http://bob-n.com | [reply] [d/l] |