• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 一個程序自動刷新頁面的例子

    發表于:2007-07-04來源:作者:點擊數: 標簽:
    #!/usr/bin/perl use HTTP::Request; use LWP::UserAgent; my $ua = new LWP::UserAgent; $|=1; print content-type:text/html\n\n; $ua-agent(AgentName/1.0 . $ua-agent); $ua-timeout(80); # Create a request my $req = new HTTP::Request POST = 'http:
    #!/usr/bin/perl

    use HTTP::Request;
    use LWP::UserAgent;
    my $ua = new LWP::UserAgent;
    $|=1;
    print "content-type:text/html\n\n";
    $ua->agent("AgentName/1.0 " . $ua->agent);
    $ua->timeout(80);
    # Create a request
    my $req = new HTTP::Request POST => 'http://search.sina.com.cn/cgi-bin/search/search.cgi';
    $req->content_type('application/x-www-form-urlencoded');
    my $buffer="ss=sina&_searchkey=%BB%EE%B6%AF%2B%BD%B1%CF%EE&_andor=and&s1=%CB%D1%CB%F7";
    $req->content($buffer);
    # Pass request to the user agent and get a response back
    my $res = $ua->request($req);
    # Check the outcome of the response
    if ($res->is_suclearcase/" target="_blank" >ccess) {
    print length($res->content);
    print <<END;
    <META HTTP-EQUIV="Refresh" Content=1;Host="http://***.***.***.***/nperl/autorefresh.pl">

    END
    ;
    print $res->content ;

    } else {

    print "bad luck";
    }

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>