Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Passing cookies through a PERL HTTP Proxy

by cls33 (Novice)
on Apr 17, 2013 at 13:55 UTC ( [id://1029153]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1029153]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-23 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found