[Python-bugs-list] [ python-Bugs-426504 ] urllib fail with MS proxy

noreply@sourceforge.net noreply@sourceforge.net
Thu, 06 Dec 2001 07:07:42 -0800


Bugs item #426504, was opened at 2001-05-22 17:51
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=426504&group_id=5470

Category: None
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib fail with MS proxy

Initial Comment:
urllib can not perform due to the present of MS proxy. 
After remove the auto-detect portation, it works.

I have to force remove the getproxies code to make it 
work:

class URLopener:
    """Class to open URLs.
    This is a class rather than just a subroutine 
because we may need
    more than one set of global protocol-specific 
options.
    Note -- this is a base class for those who don't 
want the
    automatic handling of errors type 302 (relocated) 
and 401
    (authorization needed)."""

    __tempfiles = None

    version = "Python-urllib/%s" % __version__

    # Constructor
    def __init__(self, proxies=None, **x509):
        if proxies is None:
            proxies = {}
            # proxies = getproxies()
 

----------------------------------------------------------------------

>Comment By: Michael Hudson (mwh)
Date: 2001-12-06 07:07

Message:
Logged In: YES 
user_id=6656

This seems to be a dup of #426866 (which hasn't seen life
since July, but ne'er mind that).

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=426504&group_id=5470