作者shane123 (家产有八十七亿  ﰩ
看板perl
标题yahoo 的网页似乎不能用 WWW::Mechanize
时间Tue Jul 26 23:05:00 2005
我今天试了无数个钟头的
http://tw.yahoo.com
结果不管程式怎麽写
都没办法用WWW::Mechanize登入
我的写法大致如下
$agent->get('
http://tw.login.yahoo.com/cgi-bin/login.cgi?
srv=www&from=
http://tw.yahoo.com/');
$agent->fields('login','name');
$agent->fields('passwd','pass');
$agent->submit();
#改成 $agent->click("submit"); 结果也是一样
$res=$agent->res();
print $res->content;
结果显示出来的都还是登入页面
不过若是 get('')别的网站
就可以登入
请问我是哪里错了呢??
thanks
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.62.97.25
1F:→ synth:因为有 javascript ? 61.225.16.66 07/27