Forum: Ruby Mechanize problem with proxies

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Dani P. (Guest)
on 2008-10-23 15:24
(Received via mailing list)
Hi, I'm using Mechanize-0.8.4 to pass some traffic through a custom
proxy. This proxy requires basic authentication.
 If I request, I will get redirected to or
whatever. The problem is that if the request is https, and if the
proxy server sends a redirect (302) to the client, mechanize will

c:/ruby/lib/ruby/1.8/net/http.rb:2106:in `error!': 302 "Moved
Temporarily" (Net::HTTPRetriableError)
from c:/ruby/lib/ruby/1.8/net/http.rb:2115:in `value'
from c:/ruby/lib/ruby/1.8/net/http.rb:588:in `connect'
from c:/ruby/lib/ruby/1.8/net/http.rb:557:in `do_start'
from c:/ruby/lib/ruby/1.8/net/http.rb:552:in `start'

 Instead of giving this error, I would expect mechanize to follow the
redirect, as it normally does without using a proxy.

 Any hint appreciated, thanks!
This topic is locked and can not be replied to.