Hi,
I wrote a script to login to some page. This works fine on my local machine,
but fails on my server. Both run Mechanize 0.9.0 and Nokogiri 1.2.1.
Turning debugging on I get for the succeeding run this pastie:
http://pastie.org/413049. For the failing run I get this one:
http://pastie.org/413052. Note the absence of the cookie request-header in
the failing run (from the succeeding run):
D, [2009-03-10T19:22:51.409080 #99291] DEBUG -- : request-header: cookie =>
orangeSessionID=SID%3D178CF332CDB2DAAB051AB16E7A675073227EE45A09DD8AF280A0BA2D64D03E2782EF51FFB3E0756D44AEC76F18668B182179A1A2F06C6C9D4B976C4A322EF6CF%26SID1%3DBA218F59EEEF8F541F9464732E16A148
How is this possible? Both save the cookie created in the previous request:
D, [2009-03-10T19:22:51.389433 #99291] DEBUG -- : saved cookie:
orangeSessionID=SID%3D178CF332CDB2DAAB051AB16E7A675073227EE45A09DD8AF280A0BA2D64D03E2782EF51FFB3E0756D44AEC76F18668B182179A1A2F06C6C9D4B976C4A322EF6CF%26SID1%3DBA218F59EEEF8F541F9464732E16A148
Where does Mechanize save it''s cookies? Maybe it is a permissions
issue? And
how does it determine when to send the cookie header?
I am at a loss and any help would be appreciated.
With kind regards,
Harm
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/mechanize-users/attachments/20090310/5f5dcc34/attachment-0001.html>