[Bioperl-l] How to set the proxy information?

weiych@sina.com weiych@sina.com
Tue, 30 Jul 2002 13:46:11 +0800


Sorry, I made a mistake in the subject.

Hi,
I am a newbie behind my firewall and have to use proxy 
for utilize bioperl. 
I wander whether the LWP support in Bio::DB::WebDBSeqI 
really work. As the doc of Bio::DB::WebDBSeqI noted, I
modified the examples/getGenBank.pl as the following:

...
use Bio::DB::GenBank;
use Bio::SeqIO;

my $gb = new Bio::DB::GenBank;
# $gb->proxy(['http'.'ftp'],'http://xx.xx.xx.xx:8080');
# or
$gb->ua->proxy(['http'.'ftp'], 'http://xx.xx.xx.xx:8080');
# or $gb->proxy(['http'.'ftp'],'http://usrname:passwd@xx.xx.xx.xx:8080'); 
...

But it did not work at all.
The error message is presented here:
[eacheon@neuro examples]$ perl getGenBank.pl
-------------------- WARNING ---------------------
MSG: 500 (Internal Server Error) Can't connect to www.ncbi.nlm.nih.gov:80 (Timeout)
Client-Date: Sun, 28 Jul 2002 11:02:45 GMT



---------------------------------------------------
------------- EXCEPTION  -------------
MSG: WebDBSeqI Request Error

STACK Bio::DB::WebDBSeqI::_request /usr/lib/perl5/site_perl/5.6.1/Bio/DB/WebDBSeqI.pm:523
STACK Bio::DB::WebDBSeqI::get_seq_stream /usr/lib/perl5/site_perl/5.6.1/Bio/DB/WebDBSeqI.pm:375
STACK Bio::DB::WebDBSeqI::get_Stream_by_id /usr/lib/perl5/site_perl/5.6.1/Bio/DB/WebDBSeqI.pm:237
STACK Bio::DB::WebDBSeqI::get_Seq_by_id /usr/lib/perl5/site_perl/5.6.1/Bio/DB/WebDBSeqI.pm:143
STACK toplevel getGenBank.pl:25

--------------------------------------

I tried a long time, but can not figure out how to establish
the connection with GenBank. Anyone can help me? 

______________________________________

===================================================================
新浪免费电子邮箱 (http://mail.sina.com.cn)
新浪分类信息:二手市场走一走,该出手时就出手! (http://classad.sina.com.cn/2shou/)