擅长:python、mysql、java
<p>有几种方法可以做到这一点:</p>
<p>1)Perl和LWP</p>
<pre><code>use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $response
= $ua->post('http://bip.weizmann.ac.il/oca-bin/lpccsu?9955',
{ param1 => 'value1',
param2 => 'value2',
});
my $content = $response->content;
// your regular expression code
</code></pre>
<p>2)Autohotkey有正则表达式和一个由用户编写的处理POST请求的库,请参见<a href="http://www.autohotkey.com/forum/topic33506.html" rel="nofollow">http://www.autohotkey.com/forum/topic33506.html</a></p>
<p>3)编写一个使用wget post data和post file的批处理文件,将其通过管道传输到一系列文件中,然后使用favoritte脚本语言读取输出
参考号:<a href="http://www.gnu.org/software/wget/manual/html_node/HTTP-Options.html" rel="nofollow">http://www.gnu.org/software/wget/manual/html_node/HTTP-Options.html</a></p>
<p>希望有帮助</p>