in reply to How can I store asp cookies
The Code below should enable you to store any cookie being set to a file, and enable the user agent to automagically send the cookie back to the server in any appropriate subsequent requests.
$ua->cookie_jar(HTTP::Cookies->new(file => "/path/to/file", autosave => 1));
If that doesn't work, I'd advise using something like "PlugProxy" to see exactly what request is going out. This way you can determine conclusively that the cookie is not being sent, which would suprise me (given that you have specified a cookie jar for your ua (unless of course no cookie is actually being set, which PlugProxy could also tell you)).
Plug Proxy if you want it.
Also, as holli mentioned, if you are not experienced with LWP::UserAgent and/or http, WWW::Mechanize may be the best way for you to go.
A truely compassionate attitude towards other does not change, even if they behave negatively or hurt you
His Holiness, The Dalai Lama
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I store asp cookies
by asp (Initiate) on Mar 16, 2005 at 08:48 UTC | |
by JediWizard (Deacon) on Mar 16, 2005 at 13:22 UTC | |
by asp (Initiate) on Mar 16, 2005 at 17:34 UTC |