On Sat, May 7, 2011 at 2:42 PM, Rajat Khandelwal <[email protected]> wrote:
> Hi
>
> the following code
>
>     import urllib
>     urllib.urlopen("http://wordsmith.org/words/today.html";)
>     _.read()
>
> yields the output :

The problem is that the library that you are using might not be
honouring the environment variable set. It might be a simple library
written by someone who didn't implement using proxies. The solution is
to either use a different library OR explore the documentation of this
library (whatever it is and specify the values). For example,

(this is hypothetical example, I don't know what language you are using).

import urllib
urllib.set_proxy_server(getEnvironmentVariable(HTTP_PROXY));
urllib.urlopen(url)

Do you follow?

SB

-- 
LUG@IITD - http://lug-iitd.org/Footer

Reply via email to