Skip Menu |

This queue is for tickets about the LWP-UserAgent-ProxyAny CPAN distribution.

Report information
The Basics
Id: 6217
Status: resolved
Priority: 0/
Queue: LWP-UserAgent-ProxyAny

People
Owner: QJZHOU [...] cpan.org
Requestors: rich [...] rwapservices.co.uk
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.01
Fixed in: (no value)



Subject: Windows Registry Entries
I have been trying to use LWP-UserAgent-ProxyAny to allow an Internet Spider running on my PC (under Windows IIS) to access the internet via an Internet Accelerator program (OnSpeed). I need to simply allow the Perl program to read the current proxy setting for Internet Explorer and thought this would be ideal. The registry entry I need to read is: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer However, I have discovered that this module actually attempts to read: HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer The first one is the correct registry entry to read... Rich Mellor
Subject: RE: Windows Registry Entries
Show quoted text
> I have been trying to use LWP-UserAgent-ProxyAny to allow an Internet > Spider running on my PC (under Windows IIS) to access the internet > > The registry entry I need to read is: > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet > Settings\ProxyServer > > However, I have discovered that this module actually attempts to
read: Show quoted text
>HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet > Settings\ProxyServer
Thanks Mellor for tring LWP-UserAgent-ProxyAny! In windows platforms, LWP-UserAgent-ProxyAny reads registry from current user's proxy settings. If you run from dos command line, the current user is you, and perl will read registry from your proxy settings. If you run inside IIS, the current user is local system account, and perl will read registry from .DEFAULT as described by Mellor. The reason is that IIS is a windows service and run as a user with local system account. I will try to find a better solution in this weeks. Yours, Qing-Jie Zhou<qjzhou@hotmail.com>
Subject: ProxyAny under IIS
Dear Mellor, I have found the solution. I have attached the settings in a gif, but I'm very sorry that the interface is copied from chinese windows. 1. Open your IIS management interface. 2. Select your web site, and right click to define properties. 3. Go to "Directory Security" Tab, and click "edit" under Anonymous and Authentication groups. 4. Enable Anonymous and edit your anonymous accounts, change it from IUSR_(hostname) or IWAM_(hostname) to your user name. After these settings, your IIS will work as your user name when serving anonymous browserings. And LWP::UserAgent::ProxyAny works fine as I tried. I hope it can help you.
Download iis.gif
image/gif 29k
iis.gif
Subject: ProxyAny under IIS
Dear Mellor, I have found the solution. I have attached the settings in a gif, but I'm very sorry that the interface is copied from chinese windows. 1. Open your IIS management interface. 2. Select your web site, and right click to define properties. 3. Go to "Directory Security" Tab, and click "edit" under Anonymous and Authentication groups. 4. Enable Anonymous and edit your anonymous accounts, change it from IUSR_(hostname) or IWAM_(hostname) to your user name. After these settings, your IIS will work as your user name when serving anonymous browserings. And LWP::UserAgent::ProxyAny works fine as I tried. I hope it can help you.
Download iis.gif
image/gif 29k
iis.gif