-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Shmuel Fomberg
Sent: Saturday, August 06, 2011 2:53 PM
To: Perl in Israel
Subject: Re: [Israel.pm] sending POST with cookies?

Hi Meir.

I forgot to point out that your answer does not set any cookie.
you just use WWW::Mechanize to collect and send cookies for you.

Shmuel.


Hi Shmuel,

The point with cookies, at least in my applications, is that I always have
to return to the server the cookie I got in the first "GET" with a
base/default url.

So all you have to do is to provide a CONTAINER in which Mech/LWP deposits
the cookie it gets in a response. Its contents is then used when these
packages send another GET (or a POST?) out. You don't EXPLICITLY send
anything; no more then you send all the other parameters in the HTTP HEADER
such as 'User-Agent', 'Accept-Encoding', etc. You just set these up in the
object and the package uses them as it see fit.

Regards,
Meir

_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to