Hello Monks!
I am trying to submit some requests to a website so that I don't upload 1-by-1 (I have ~100 sequences to run), using the WWW:Mechanize module. But I can't seem to be able to find the correct page to put in my script. The tool I am trying to use is this one:
http://www.csbio.sjtu.edu.cn/bioinf/MemBrain/. If I just put this:
my $url = 'http://www.csbio.sjtu.edu.cn/MEMBRAIN/';
my $mech = WWW::Mechanize->new (timeout=>1000);
$mech->post($url);
I get:
Error POSTing http://www.csbio.sjtu.edu.cn/cgi-bin/MEMBRAIN.cgi/: Internal Server Error. Same result using
get instead of
post
By looking at the page source, I see:
<form name="myform" action="/cgi-bin/MEMBRAIN.cgi" method="post" onSub
+mit="javascript: return checkform();">
so I am thinking that my URL might be wrong. Any ideas how to point to the correct page so that it gets executed?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.