I think you will actually need to supply the proper hostname when you call ->add_cookie in your code. See HTTP::Cookies on the parameter order.
Personally, I would first set up an empty cookie jar, visit the site with (say) WWW::Mechanize, save the cookie jar to a file, and then reuse that file. This removes all the hassle of writing and debugging code just to get the correct cookies in place.
In reply to Re^3: LWP::UserAgent does not send Cookies
by Corion
in thread LWP::UserAgent does not send Cookies
by CodeVixen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |