use HTTP::Request; use LWP::UserAgent; my $url = "http://".$PREF{webServer}."/index.php?act=upload&task=checkMd5&md5=".$md5."&id=".$PREF{uploadid}; my $ua = LWP::UserAgent->new; my $req = new HTTP::Request(GET => $url); my $resp = $ua->request($req); my $result = $resp->content(); if ($result eq 'wrong' ) { unlock_log_file(); fatal_error( "不能重复上传同一个文件" ); }
Posted on 2007-04-25 14:52  古代  阅读(422)  评论(0编辑  收藏  举报