From: Zhoran Tvalve Date: 2008-12-12T00:23:21+09:00 Subject: Re: A bug in c:\InstantRails\ruby\lib\ruby\1.8\net\http.rb? Rupert Voelcker wrote: > 2008/12/10 Zhoran Tvalve : >> I can not make working a line of code: >> >> http = Net::HTTP::Proxy('192.168.1.32', 3128, 'user', >> 'password').new('http://www.yandex.ru',80) >> >> I got: >> stack level too deep > > I've no idea on the ins and outs of your error, but I've used the > Proxy class like so in the past: > > proxy_class = Net::HTTP::Proxy(PROXY_ADDRESS, PROXY_PORT) > > response = proxy_class.start(uri.host, uri.port) {|http| > http.get(uri.path, headers) > } > > ...may or may not be good practice but it's worked for me. > > Rupert Hi, Rupert. Thank you for your advice. I tried your code, but got again stack level too deep. I think it's because we use differrent lib versions. Could you attach zipped ruby\lib\ruby\1.8 folder? It would help me a lot. -- Posted via http://www.ruby-forum.com/.