perl.crazy has asked for the wisdom of the Perl Monks concerning the following question:
The code is not giving desired output. Please let me know where I am going wroing?my $URLtoPostTo="http://www.cbs.dtu.dk/cgi-bin/search.cgi"; my %Fields = ( "configfile" => "/usr/opt/www/pub/CBS/services/NetMHC-3.0/NetMHC +.cf", "SEQPASTE" => ">gi|15607143|Rv0001|ref|NP_214515.1| chromosomal + replication initiation protein [Mycobacterium tuberculosis H37Rv] MTDDPGSGFTTVWNAVVSELNGDPKVDDGPSSDANLSAPLTPQQRAWLNLVQPLTIVEGFALLSVPSSFV QNEIERHLRAPITDALSRRLGHQIQLGVRIAPPATDEADDTTVPPSENPATTSPDTTTDNDEIDDSAAAR GDNQHSWPSYFTERPHNTDSATAGVTSLNRRYTFDTFVIGASNRFAHAAALAIAEAPARAYNPLFIWGES GLGKTHLLHAAGNYAQRLFPGMRVKYVSTEEFTNDFINSLRDDRKVAFKRSYRDVDVLLVDDIQFIEGKE GIQEEFFHTFNTLHNANKQIVISSDRPPKQLATLEDRLRTRFEWGLITDVQPPELETRIAILRKKAQMER LAVPDDVLELIASSIERNIRELEGALIRVTAFASLNKTPIDKALAEIVLRDLIADANTMQISAATIMAAT AEYFDTTVEELRGPGKTRALAQSRQIAMYLCRELTDLSLPKIGQAFGRDHTTVMYAQRKILSEMAERREV FDHVKELTTRIRQRSKR", "peptide" => "on", "peplen" => 9, "alleles" => "A0202", "sort" => "on", ); use strict; use LWP::UserAgent; use HTTP::Request::Common; my $Browser = new LWP::UserAgent; my $Page = $Browser->request(POST $URLtoPostTo,\%Fields); print "Content-type: text/html\n\n"; if ($Page->is_success) { my $content= $Page->content; print "$content","\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: automation of query with lwp
by ccn (Vicar) on Nov 26, 2008 at 19:28 UTC | |
by perl.crazy (Initiate) on Nov 26, 2008 at 19:32 UTC | |
by ccn (Vicar) on Nov 26, 2008 at 19:37 UTC | |
| |
| |
| |
|
Re: automation of query with lwp
by Corion (Patriarch) on Nov 26, 2008 at 19:30 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |