473,383 Members | 1,862 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,383 software developers and data experts.

urllib & browser proxy settings

I am running a medusa bases server, which spawns a copy process which
reports back it's status using urllib as below

try:
f = urllib.urlopen("http://localhost:8088/root/copyresult"
, params)
print f.read()
except:
print "could't tell copyresult server I'm initializing %s
,%s %s " % (item,sys.exc_type,sys.exc_value)
print 'Attempting to Copy %s to %s' %(values[1],values[2])

This is all works very well and life is a sea of tranquility and
programming is fun (see threads passim.)

However when the server is used in the presence of a system which has
the browser proxy setting activated (mozilla or IE) It fails with
"Software caused connection abort". However the 'normal' functions of
the server continue properly. I have tried changing the localhost to
127.0.0.1 all to no avail.

Perhaps this isn't really a python question since it is activated by a
change in the machine configuration but I would really benefit from a
solution as clients will of course be running in an environment that
uses a proxy setting and I don't like being laughed at. (except by you
lot obviously).
Jul 18 '05 #1
1 2263
ch********@spritenote.co.uk (Chris Lyon) schreef:
I am running a medusa bases server, which spawns a copy process which
reports back it's status using urllib as below [...] This is all works very well and life is a sea of tranquility and
programming is fun (see threads passim.)

However when the server is used in the presence of a system which has
the browser proxy setting activated (mozilla or IE) It fails with
"Software caused connection abort".


Did you try:

f = urllib.urlopen("http://localhost:8088/root/copyresult", params, proxies={})
--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #2

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

Similar topics

1
by: Matthijs | last post by:
I have been trying to make a script that will download several rss feeds to my computer. The only problem I have is that I have to go through a proxy. First I tried using urllib (python 2.4,...
0
by: Pieter | last post by:
Hi, I've a activex browser control in a form. I've added proxy server support to the control by modifying the proxy server settings in the registry. This works fine before the browser control is...
0
by: Ali.Sabil | last post by:
hello all, I just maybe hit a bug in both urllib and urllib2, actually urllib doesn't support proxy authentication, and if you setup the http_proxy env var to...
1
by: evanpmeth | last post by:
I have tried multiple ways of posting information to a website and have failed. I have seen this problem on other forums can someone explain or point me to information on how POST works through...
4
by: kgrafals | last post by:
Hi, I'm just trying to read from a webpage with urllib but I'm getting IOErrors. This is my code: import urllib sock = urllib.urlopen("http://www.google.com/") and this is the error:
5
by: John Nagle | last post by:
I thought I had all the timeout problems with urllib worked around, but no. socket.setdefaulttimeout is useful, but not always effective. I'm setting that to 15 seconds. If the host end won't...
12
by: MC | last post by:
Hi all, I have write a simple program in c# that change proxy setting for IE7 by edit these registry keys: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]...
1
by: gooli | last post by:
Hi, I'm using urllib to get html pages from the web but my computer is behind a proxy. The proxy is automatically configured in Internet Explorer via a proxy.pac file...
5
by: jlist | last post by:
I'm running ActiveState Python 2.5 on Windows XP. It used to work fine. Today however I get (10061, 'Connection refused') for any site I try with urllib.urlopen().
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.