473,320 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

win32all: buggy IE proxy stuff and execScript()

OK, I was writing code using WIN32ALL to do automation scripts for
common things we do in IE a lot at work, since grunt-n-point gets
very boring after a while. I snarfed the code from

<http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&newwindow=1&safe=off&selm=mailman.1034878702.259 47.python-list%40python.org>

which was very useful. (Thanks, Dave!)

Finally I get to a beta stage and give it to some of the guys in my
group to test, and they get "Access is denied" errors executing the
execScript() method, which runs some javascript in the browser
context.

They're running pretty much the exact same windows install I am, so I
beat my head against the wall for a day trying to figure out what's
going on. Some people can run things as "Administrator", some folks
can run it as their user, some get it to work under both accounts, and
some can't get it to work under any account. My machine never had any
problems, even when I tried to make it break.

I'm using Win2K Pro SP 4 with all the critical patches, Python 2.2.3,
and win32all build 156.

I thought it was strange that I got NO Google hits on my error
message, and no one else was having the problem.

I was getting nowhere so I decided to post to comp.lang.python about
my problem and see if some bright person had an idea. Not only is this
the most coding I've ever done under Windows, but this is probably the
most I've USED Windows in years.

So I whipped up a short script to demonstrate the problem, and since
no one would have access to our internal sites, I used www.python.org
as my example site.

I wanted to cut'n'paste the error message, so I ran the script on my
bosses' machine. AND IT WORKED. I changed the site back to our
internal website and it crashed. Obviously this immediately narrows it
down to the proxy settings, which I compared to the ones on my
machine.

It turns out that if the site is listed in the "bypass proxy" list, it
becomes a "Local Intranet" site and you get permission errors NO
MATTER how you set the permissions for the "Local Intranet" zone. I
experimented a lot with this, and I got my machine to finally get
permission errors.

Obviously a bug, but I didn't find anything in MSDN or MS KB on it.

Here's what you need to do as a workaround:

1. Open the "Tools->Internet Options" menu.
2. Select the "Security" tab.
3. Click the "Local Intranet" zone icon.
4. Click the "Sites" button.
5. Uncheck the "Include all sites that bypass the proxy server"
item.
6. Hit the "OK" buttons twice.

That fixes it by putting these sites into the "Internet" zone, and you
have to do this for the Windows user(s) that will be running IE
scripts, as it's a per-user thing.

It seems that it doesn't matter what the permissions are for the
"Internet" zone, as I cranked those all the way up and didn't have any
problems.

Am I really the first person to run into this?

-gc

--
The Stones of Ranthenge are written through-and-through, though in an
ancient script composed solely of decimal points. There are none who
understand these strange inscriptions outside of one order of Monks,
who refer to this place as "The Stones That Are Nine-Edge-Down".
Jul 18 '05 #1
0 3000

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike Cannon | last post by:
I'm having a problem with the newer version of win32all and Python 2.3 with code that works fine on Python-2.2 (details below). Both machines are Windows XP. The code that breaks is derived...
0
by: The Jetman | last post by:
Folks: Have seen this minor problem w/ WIN32ALL-157 thru 159. I install a fresh copy of Python 2.3. Then proceed to install WIN32ALL. It always crashes the 1st time thru w/ the following dump...
3
by: Werner Merkl | last post by:
Hi, Python is really great, for small to big programs. For my colleagues and some circumstances I sometimes need to "compile" a script using py2exe. Cause I use Windows, I like to use the...
0
by: PiErre | last post by:
Hi All, I am trying to install win32 extension 162 on python 2.2.3 on a virtual (vmware) machine with win2k server sp3 (but I tested that the same happens on either win2k sp2 or win2ksp3 on a...
16
by: Paul Sweeney | last post by:
Does anyone know of a working (python) https proxy which allows viewing of unencrypted data being sent from my browser to an https site? I've worked my way through most on the list at...
2
by: nitrogenycs | last post by:
Hello, I need a way to get a notification whenever a variable of an object changes. The approach should be non-intrusive so that I can use existing objects without modifying them. I want to be...
6
by: sameer | last post by:
..NET Framework 1.1 VS2003 Application is making webservice calls from behind a proxy server and then freezes and dies. Questoin is can i use webservice over proxy server( i guess another name...
7
by: Pro1712 | last post by:
Hello, I need to write a simple proxy server. What I want to do is to use HttpListener to get requests from the browser, add some proxy information and some other stuff and send the request to...
1
by: Drelus | last post by:
I'm using an Ajax call to open a search box in the page and I want the focus to go to the box automatically. So, in the httpObject.responseText, I tried sending the following in addition to the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.