Forum: Ruby How can I use hpricot with proxy and provide username info?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
666bc1afacbfb59f8e511faad9f31e64?d=identicon&s=25 Cs Webgrl (cswebgrl)
on 2008-11-07 22:55
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!
This topic is locked and can not be replied to.