Jeff K.V. Bhavnanie writes ..
>How do i go about accepting a cookie from a web login site?
in a cookie jar
>I use LWP to do a POST, but i can't login as the server
>sends a cookie. Is there a generic Login perl script lines?
>
>Login to a web site, send username password, accept cookie
>then the rest of the POST forms send that cookie back?
nope .. no generic one .. but it's pretty simple .. if you're not already -
then you'll need to start using LWP::UserAgent (rather than LWP::Simple)
then check out the documentation
perldoc LWP::UserAgent
search for cookie and you'll see the cookie_jar method .. and a reference to
HTTP::Cookies .. check the documentation for that too
perldoc HTTP::Cookies
it's pretty simple
Hint: test cookie scripts first on the command line - it's MUCH easier to
see and debug the output
--
jason king
In New York, a fine of $25 can be levied for flirting. This old law
specifically prohibits men from turning around on any city street and
looking "at a woman in that way." A second conviction for a crime of
this magnitude calls for the violating male to be forced to wear a
"pair of horse-blinders" wherever and whenever he goes outside for a
stroll. - http://dumblaws.com/