CGI & LWP::UserAgent - forwarding cookies - how?
am 15.01.2007 21:25:53 von S P Arif Sahari WibowoHi!
I am developing a CGI application (using CGI module), which upon
processing (when user submit) will contact a second httpd server using
LWP::UserAgent.
The issue is, I need to forward some cookies (authentication cookies) -
that the application receievd - to the second server. I know
LWP::UserAgent use HTTP::Cookies to represent it cookie jar, but I
cannot find out how I can inject a new cookie into the jar, especially
when the cookie came from a CGI application.
Any ideas how I can do this? Can I somehow inject "raw_cookie" from CGI
directly into LWP::UserAgent?
Thanks!
http://www.arifsaha.com/