Thread LWP::UserAgent und methode post (4 answers)
Opened by xeroxed_yeti at 2007-08-01 19:07

renee
 2007-08-02 00:04
#97184 #97184
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Der Post-Request muss auch an das Skript gehen, nicht an das HTML-Formular...

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w

use strict;
use warnings;
use LWP;

my $htmlInput = ">Prot1\nQAFAYQLSNGIPIESWFMDKNDNELLKLIPFLEKLVELNEDVRPHIRDRFRLHDLLPPD\n
>Prot2\nMRLRTRKASQ\n";

my $browser = LWP::UserAgent->new(timeout => 0);
$browser->env_proxy;
my $content = $browser->post('http://www.genebee.msu.su/cgi-bin/nph-malign.pl', ["SEQ" => $htmlInput]);
print $content->content;
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread LWP::UserAgent und methode post