From: Assaph Mehr Date: 2005-05-05T07:44:51+09:00 Subject: Re: HTTP Proxy problem Joe Mitchell wrote: > I'm having trouble getting Proxy to work properly within our corporate > firewall. I've validated the proxy settings. Mozilla is able to reach > the Internet just fine using the specified proxy, but my demo Ruby app > is not. Is it perhaps an MS Proxy? If your net-admins set it to use NTLM authentication then it would explain the problem (Ruby's net/http proxy only handles Basic authentication). > Also, I noticed that I was not able to reach a site within the firewall > unless I specified the IP address rather than the URL. I've done some > sniffing through the stack using the debugger, and the correct URL > seems to be passed down through it. Proxies are usually set to look outwards only, and the browser has a setting to bypass the proxy for certain addresses/namespaces. I don't think there's a global way to set it. In your script you'll likely need to set the same values, check if the requested site is within those values and then decide whetehr to use Net::HTTP::Proxy or just Net::HTTP. HTH, Assaph