On 19/12/2008, at 8:01 AM, _why wrote:
On Thu, Dec 18, 2008 at 11:53:18AM +0000, Simon Heywood wrote:
In this instance, yes it would certainly help me, but I might just
be an
oddball case, so if the consensus was use the HTTP_PROXY environment
variable then so be it.
After doing some footwork, I'm still puzzled as to how to do this
best, but here's a few interesting things:
* You can use proxycfg.exe to set WinHTTP proxy settings, which
consequently affects Shoes (even Raisins.)
So windows does have a global proxy setting that is not the same one
as IE uses? How strange that they seemingly have no obvious user
interface for it.
* You use "proxycfg -u" to copy IE's proxy settings to WinHTTP.
If this is global, best not do it automatically and mess stuff up..
* The function WinHttpGetProxyForUrl will read PAC settings.
I'll probably use this function.
Neat
* It has an auto-proxy setting that reads the PAC url through DHCP,
is that a common way to get proxy settings, I guess?
Huh, so that's how that 'auto proxy config' stuff works aye? Neato.
_why
I think HTTP_PROXY support needs only even be available on linuxes.
Shoes is a GUI toolkit. Some users may have absolutely no command line
experience in the future where shoes acts as a runtime for kids. :)
If all the platform api's permit, it would be nice if the proxy
settings could be overridden in the source code of the app as well at
any time changing them. :)
Is socks support possible? I imagine ruby would nearly entirely use
the standard posixy network interfaces, so socks support could turn
out to be little more than the inclusion of one of those transparent
proxying libraries at compile time, plus a little wrangling to have it
use system config and be alterable from within a shoes application.
Having download and upload go through socks would no doubt be more
difficult. My motivation for wanting socks is that the australian
government has been wanting to create a filtering firewall similar to
that of china's, and socks proxy support allows connections to be
tunneled through ssh very easily.
_blue