If you look at the documentation for open-uri (specifically the open method), you'll see proxy options:
http://www.ruby-doc.org/stdlib/libdoc/open-uri/rdoc/classes/OpenURI/OpenRead.html#M001333 --Jordan P.S. Many questions can be answered by looking in the docs first: All Ruby Docs: http://www.ruby-doc.org/ Ruby Core Docs: http://www.ruby-doc.org/core/ Ruby Standard Library Docs: http://www.ruby-doc.org/stdlib/ On 2/24/08, mfmad <[EMAIL PROTECTED]> wrote: > > > I mean if you do a call such as: > > doc = Hpricot(open('http://yahoo.com')) > > How do you have this call routed thru a proxy server? Or is there a > way to make all your process's http requests go thru a proxy server? > > > On Feb 24, 4:44 pm, "Matt Aimonetti" <[EMAIL PROTECTED]> wrote: > > what do you mean? Hpricot is a parser, you usually use open-uri or > whatever > > other library you want to download remote content (that's if you need > remote > > content) and feed the output to Hpricot. > > > > -Matt > > > > > On 2/24/08, mfmad <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi Guys, > > > > > Does anyone know how to set Hpricot to go thru a proxy server? > > > > > Tks, > > > Michael > > > -- Jordan A. Fowler 2621 First Ave Apt 5 San Diego, CA 92103 E-mail: [EMAIL PROTECTED] Website: http://www.jordanfowler.com Phone: 406.546.8055 --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
