Ruby HTTP Proxy snippet

Just a small pattern is use all the time for writing HTTP requests that work

that's nice but if you use proxys you should consider to make a timeout if the proxy went down

Anonymous on June 26, 2007 at 14:15 +0200

Nice snippet, had an issue with mechanize.

Interestingly your snippet works using Http directly, but fails when I try to use it with set_proxy of mechanize.

John Ward on Feb. 8, 2008 at 13:23 +0100

Comment on this

You can use Markdown here.

Please answer the question in this field. It should help keeping spambots out ;-)