Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Stay logged in between requests with WWW::Mechanize

by Cody Pendant (Prior)
on Nov 14, 2008 at 05:33 UTC ( #723566=note: print w/replies, xml ) Need Help??


in reply to Re^3: Stay logged in between requests with WWW::Mechanize
in thread Stay logged in between requests with WWW::Mechanize

That's logical, but I want it to DWIW!

I guess the logical thing is that I would keep my script running in an endless loop, i.e. instead of a cron job running every five minutes, I run my script with while(1) and a five-minute sleep()?

I don't love that idea.



Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...

Replies are listed 'Best First'.
Re^5: Stay logged in between requests with WWW::Mechanize
by almut (Canon) on Nov 14, 2008 at 05:45 UTC
    I don't love that idea.

    Have you tried what the Anonymous Monk suggested?  from HTTP::Cookies:

    ignore_discard: save even cookies that are requested to be discar +ded (bool)

    Sounds like made for exactly that purpose...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://723566]
help
Chatterbox?
[erix]: I'm not sure. I suppose you could compare behavior via DBD::Pg with behaviour of the naked SQL
[erix]: I mean, SQL with PREPARE
[choroba]: hmm... ok, will try
[choroba]: the documentation of PREPARE doesn't mention transactions at all :-/

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2017-09-19 13:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (220 votes). Check out past polls.

    Notices?