good idea - I'll add that

        Thanks,
        Andy

On 10/06/11 11:53, Camel Christophe wrote:
Hi,

We plan to use the Fuseky scripts to manage our ontologies.
Unfortunately, since we are in behind a company firewall, the scripts
does not work.

It would be nice to add code to allow connections through a proxy. For
instance, to make it work, I replaced every assignations of the 'http'
variable by the following lines :

proxy = ENV['http_proxy'] ? URI.parse(ENV['http_proxy']) :
OpenStruct.new
http = Net::HTTP::Proxy(proxy.host,proxy.port).new(uri.host, uri.port)

(Be kind, i'm not a ruby master)

Neither am I - see the code :-)


The principle could be extended to support also authentication to the
proxy.

What do you think ?

Christophe


Reply via email to