|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I want to let my program connect to internet using the proxy setting of
IE,and I spent some time to find it in google,but nothing was found.Is there some way to do it? Any will be appreciated! -- Posted via http://www.ruby-forum.com/. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Wu Junchen wrote:
> I want to let my program connect to internet using the proxy setting of > IE,and I spent some time to find it in google,but nothing was found.Is > there some way to do it? > Any will be appreciated! require 'win32/registry' def get_proxy path='Software\Microsoft\Windows\CurrentVersion\In ternet Settings' type, value =Win32::Registry::HKEY_CURRENT_USER.open(path).rea d('Server') return value end Untested, on my laptop the proxy is handled in another way (wininet.dll ?) Regards, Siep -- Posted via http://www.ruby-forum.com/. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Siep Korteling wrote:
> Wu Junchen wrote: >> I want to let my program connect to internet using the proxy setting of > Regards, > > Siep Should be: require 'win32/registry' def get_proxy path = 'Software\Microsoft\Windows\CurrentVersion\Interne t Settings' type, value = Win32::Registry::HKEY_CURRENT_USER.open(path).read ('ProxyServer') #! return reg_value end regards, Siep -- Posted via http://www.ruby-forum.com/. |
|
![]() |
| Outils de la discussion | |
|
|