[Bioperl-l] http proxy support for test cases

Lihn, Steve horng_twu_lihn@merck.com
Thu, 21 Mar 2002 16:32:10 -0500

For those of us sitting behind a firewall, proxy server is always a problem.
So I went in and hack the code. A very simple hack is like this:

Inside Biblio_biofetch.t (v.1.0), add the following code (3 places):

    ok ($db = new Bio::Biblio (-access => 'biofetch',
    if ( $ENV{'BIOPERL_HTTP_PROXY'} ) {
      ok ($db->proxy(['http','ftp'], $ENV{'BIOPERL_HTTP_PROXY'}));

DOS/UNIX sh>set BIOPERL_HTTP_PROXY="http://a.b.com:port/"
DOS/UNIX sh>nmake test

There are a few other places in other files that needs this fix. I will
follow up.

  Steve Lihn
  FIS Database Support, Merck & Co., Inc.
  Tel: (908) 423 - 4441