- 论坛徽章:
- 0
|
嗯,试了下。loginuser.asp要检查ASPSESSIONIDAQBSSRSD
步骤是这样的1.GET index.asp, 保存cookie
2.带cookie, POST
3. 再更新cookie, GET你要的叶面。
这是我的代码。测试是成功的
- my $url = 'http://www.cmfu.com/index.asp';
- my $lurl = 'http://www.cmfu.com/loginuser.asp';
- my %form = (ekey => '', user_type => '1', pass_word => '835170', user_name => 'thevoice');
- my %header = (Referer => $url);
- my ($html, $cookie) = http_get($url, \%header);
- $header{Cookie} = $cookie if ($cookie);
- ($html, $cookie) = http_post($lurl, \%header, \%form);
- $header{Cookie} .= ';'.$cookie if ($cookie);
- ($html) = http_get($url, \%header);
- print $html;
复制代码
[ 本帖最后由 路小佳 于 2007-4-24 13:39 编辑 ] |
|