[BioRuby] proxy

Toshiaki Katayama ktym at hgc.jp
Tue Mar 16 05:09:14 EST 2004


Hi Vert,

According to the SOAP4R documentation at
   http://rrr.jin.gr.jp/doc/soap4r/RELEASE_en.html
you will need to set two environmental variables or to create
a configuration file (I have no proxy and have never tried).

1. set 'soap_use_proxy' variable with its value 'on' and
    set 'http_proxy' variable with URL of your proxy as its value

or

2. create a $RUBYLIB/soap/property file (where $RUBYLIB is the
    directory of your choice something like $HOME/lib/ruby/ or
    /usr/local/lib/ruby/site_ruby/1.8/ etc.) to specify the proxy like:
      client.protocol.http.proxy = http://myproxy:8080

Hope this helps,
Toshiaki Katayama


On 2004/03/16, at 19:54, Jean-Philippe Vert wrote:

> Dear friends,
>
> I'd like to use the wonderful KEGG API with Ruby, but I can only 
> connect to the web through a proxy. Would someone know what I should 
> do to set up the proxy connection? For example, let's say I want to 
> run the script:
>
> #!/usr/bin/env ruby
> require 'bio'
> serv = Bio::KEGG::API.new
> puts serv.get_best_neighbors_by_gene('eco:b0002', 500, ['hin', 'bsu'])
>
> It does not work currently because it tries to connect directly. 
> Should I change something in this code, or in a different 
> configuration file?
>
> Thanks if you have time to answer this basic question, or give me a 
> link.
>
> yoroshiku onegaishimasu
> jp
>
> -- 
> Jean-Philippe Vert
> Ecole des Mines de Paris
> http://www.cg.ensmp.fr/~vert
>
>
> _______________________________________________
> BioRuby mailing list
> BioRuby at open-bio.org
> http://portal.open-bio.org/mailman/listinfo/bioruby



More information about the BioRuby mailing list