hi

i've been working at this one for a week, and i have really tried 
solving it on my own(read lwpcook and docs, searched deja.com, 
and searched lwp mail archives) but i'm stumped.

I have a script that i want to grab a login page at say 
my.yahoo.com (or any other site), and give me the form (only the 
form is changed so the action goes to the script which does the 
logging in and saves the cookie).  that part i seem to have down.

when i submit I get either a error 500 broken pipe, or error 500 
Method Not Implemented  POST to / not supported. 

my headers look like this :
POST http://login.yahoo.com/config/login
Content-Type: application/x-www-form-urlencoded
Cookie: B=89itgjsskut7n&b=2
Cookie2: $Version=1

use_url=http://login.yahoo.com/config/login&root=http://my.yahoo.
com&.tries=1&.done=http://my.yahoo.com&.src=my&partner=&.intl=us&;
lg=us&login=mcardeiro&passwd=xxxxxxx&.chkP=Y  

the POSTing part of my code looks like this:

my $request = new HTTP::Request 'POST' => $url; #$url is were the 
form action originally pointed
$cookie_jar->add_cookie_header($request);               
$request->content_type('application/x-www-form-urlencoded');
$request->content($string);#$string is url Escaped x=y&b=h etc
$doc = $browser->request($request);

is there any hope? am i going in the wrong direction, would a 
proxy be a better solution?

mike cardeiro

Reply via email to