我正在使用http://www.ajax-cross-domain.com/,我已经按照页面上的说明设置了我的本地Ampps服务器。页面上给出的示例运行成功。
我的test.html包含:
<script
type="text/javascript"
src="cgi-bin/ACD/ACD.js?uri=(http://toolkit.tuebingen.mpg.de/hhpred/run/hhpred)&method=post&postdata=(sequence_input=&sequence_file=target.seq&informat=fas&submitform=Submit%2Bjob&hhpred_dbs%5B%5D=%2Fcluster%2Ftoolkit%2Fproduction%2Fdatabases%2Fhhpred%2Fnew_dbs%2Fpdb70_6Jun13&genomes_first=true&prefilter=hhblits&maxhhblitsit=3&ss_scoring=2&alignmode=local&more_options_on=false&Ehhblitsval=1E-3&cov_min=20&qid_min=0&mact=0.3&compbiascorr=1&maxseq=1&width=80&Pmin=20&maxlines=100&jobid=&mail=)">
</script>
<script type="text/javascript">
alert(ACD.responseText);
</script> `ACD.js包含:
my @allowed_uris = (
'uri=(http://toolkit.tuebingen.mpg.de/hhpred/run/hhpred)&method=post&postdata=(sequence_input=&sequence_file=target.seq&informat=fas&submitform=Submit+job&hhpred_dbs%5B%5D=%2Fcluster%2Ftoolkit%2Fproduction%2Fdatabases%2Fhhpred%2Fnew_dbs%2Fpdb70_6Jun13&genomes_first=true&prefilter=hhblits&maxhhblitsit=3&ss_scoring=2&alignmode=local&more_options_on=false&Ehhblitsval=1E-3&cov_min=20&qid_min=0&mact=0.3&compbiascorr=1&maxseq=1&width=80&Pmin=20&maxlines=100&jobid=&mail=)'
);在my @allowed_uris变量中。ACD.js的其余部分与http://www.ajax-cross-domain.com/ACD-source.txt相同
我想提交这个表单http://toolkit.tuebingen.mpg.de/hhpred,并获得与AJAX的数据。它正在给500 Internal Error。
有人能解释一下怎么做吗?
发布于 2013-06-07 13:11:51
在test.html中
src="http://www.ajax-cross-domain.com/cgi-bin/ACD/ACD.js?...需要更改为
src="cgi-bin/ACD/ACD.js?...‘这很简单,但很隐蔽:)
https://stackoverflow.com/questions/16975938
复制相似问题