in reply to Re: Passing cookies through a PERL HTTP Proxy
in thread Passing cookies through a PERL HTTP Proxy

I'm still missing something. I can pull the cookie out of the response header easily enough:
my $CookieHeader = $response->header('Set-Cookie');

But I'm not sure how to pass that back to the browser. Right now I send the response back like so:

if ($response->is_redirect) { print $cgi->redirect(-uri=>$response->header('Location'), -status=>$response->code ); } else { print $cgi->header($ResponseContentType); print $response->content; }


I guess I'm not sure how to use CGI to invoke Set-Cookie. I know it has a -cookie option, but I don't have a CGI cookie object, so I don't think that will work...redirect(-uri=

Replies are listed 'Best First'.
Re^3: Passing cookies through a PERL HTTP Proxy
by Anonymous Monk on Apr 17, 2013 at 14:21 UTC