booy has asked for the wisdom of the Perl Monks concerning the following question:
I want to submit some jobs to the web site "http://www.jcat.de/" using perl. I writted a script using the LWP, but it always produce a 500 internal server error. I can not figure out how to do correctly.
The select form looks like this:
<option value="330 Escherichia coli O6:K15:H31 (strain 536 / UPEC)">Escherichia coli O6:K15:H31 (strain 536 / UPEC)</option>
<option value="40 Escherichia coli O6 (strain UPEC / O6:H1 / ATCC 700928 / CFT073)">Escherichia coli O6 (strain UPEC / O6:H1 / ATCC 700928 / CFT073)</option>
<option value="317 Escherichia coli (strain ATCC 27325 / DSM 5911 / W3110 / K12)">Escherichia coli (strain ATCC 27325 / DSM 5911 / W3110 / K12)</option>
my $browser = LWP::UserAgent->new; my $url = "http://www.jcat.de/Result.jsp"; #submit my $response = $browser->post( $url, [ 'Sequence' => $ori_seq,#42 Escherichia coli (strain K12) 'seq_type' => 'DNA', 'genome' => '42 Escherichia coli (strain K12)', 'hairpin' => 'checked', 'quickChange' => 'checked', ]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A problem in submitting select form with LWP
by jellisii2 (Hermit) on Jan 23, 2014 at 12:51 UTC | |
by booy (Initiate) on Jan 23, 2014 at 16:12 UTC | |
|
Re: A problem in submitting select form with LWP
by tangent (Parson) on Jan 23, 2014 at 13:47 UTC | |
by booy (Initiate) on Jan 23, 2014 at 16:10 UTC |