use LWP::Simple;
use HTML::LinkExtor;
use Data::Dumper;
#my $url = shift @ARGV;
my $content = get('example.com?GET=whateverIwant');
my $parser = HTML::LinkExtor->new(); #create LinkExtor object with no callbacks
$parser->parse($content); #parse content
现在如果我要发送POST和COOKIE信息以及与HTTP标头我怎么能配置与GET功能可按?还是必须自定义我自己的方法?如何使用Perl的LWP :: Simple发送cookies?
我的主要兴趣是饼干!然后发布!
但是什么是set_cookie的参数!文档指的是$版本,但没有提供任何细节! http://search.cpan.org/~gaas/HTTP-Cookies-6.01/lib/HTTP/Cookies.pm#METHODS – Chloe 2013-01-14 19:25:44
@Chloe,它期望你熟悉的cookie规范。参见[RFC 2965](https://www.ietf.org/rfc/rfc2965)。 – cjm 2013-01-14 23:56:57