On Aug 09, James Rubino <james.rub...@gmail.com> wrote:

> Hello all,

Hi! :-)

> How do I designate a proxy for http access?

If the HTTP_PROXY environment variable is set (e.g. http://localhost:8080/ )
it will be automatically used.

Otherwise, you can set the "proxy" key in your ~/.imdbpy.cfg (see
the docs/imdbpy.cfg file) or pass it directly in your code:
  from imdb import IMDb
  ia = IMDb('http', proxy='MyProxy')

Setting it to None (or an empty string) will force IMDbPY to not
use any proxy.
The same rules apply to 'mobile', too.


Bye!
-- 
Davide Alberani <davide.alber...@gmail.com> [GPG KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to