Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   How can I use hpricot with proxy and provide username info? (http://www.velocityreviews.com/forums/t854075-how-can-i-use-hpricot-with-proxy-and-provide-username-info.html)

Cs Webgrl 11-07-2008 09:53 PM

How can I use hpricot with proxy and provide username info?
 
Hi.

I am using hpricot, but I want to send this through a proxy server.

I've used mechanize through a proxy without a problem, but I don't need
it for this code.

Currently I have


doc = Hpricot(open(location, :proxy =>
'http://www.proxyserver.com:8080',
:http_basic_authentication => ['username,password']))


Any ideas why I'm get a 407 Proxy Authentication error and how to solve
it?

Thanks!
--
Posted via http://www.ruby-forum.com/.



All times are GMT. The time now is 10:53 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.