[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Immo Wetzel


Immo Wetzel  added the comment:

issue is only on urllib2 and requests (external lib)
ticket opened: https://github.com/kennethreitz/requests/issues/5095

--
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Immo Wetzel


Immo Wetzel  added the comment:

thanks for pointing this out. I've retested urllib3 with success. requests with 
no success. so I'll write a new issue on requests. Thanks a lot

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Steve Dower


Steve Dower  added the comment:

requests is a third-party library, so if they're finding your settings you 
probably need to report it to them.

urllib2 is only part of Python 2.x. Do you have a repro with urllib on Python 3?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Immo Wetzel


Immo Wetzel  added the comment:

>Can you clarify how you are setting your proxy configuration and how >Python 
>is finding out about it?
The windows host get his proxy configuration via group police from the Active 
Directory. The group policy points to a specific file wpad.dat formerly known 
as proxy.pac
This is a configuration used for IE and Chrome automatically from the hosts.

How Python finds this out and is using this is unclear to me. There is 
definitely no environment variable setting done.

>Also, which libraries are you using?
request and urllib2 both are failing

>As far as I'm aware, Python itself does nothing special to load proxy settings 
>from normal Windows configuration. Doing so would be a feature request (though 
>it's one I'd like to see happen).

I was guessing so too. Especially cos all help site tell me how to specify 
proxy objects for use with requests lib. But obviously there is something 
existing.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Steve Dower


Steve Dower  added the comment:

Can you clarify how you are setting your proxy configuration and how Python is 
finding out about it?

Also, which libraries are you using?

As far as I'm aware, Python itself does nothing special to load proxy settings 
from normal Windows configuration. Doing so would be a feature request (though 
it's one I'd like to see happen).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread SilentGhost


Change by SilentGhost :


--
versions: +Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread SilentGhost


SilentGhost  added the comment:

Immo, please be careful when editing the fields. You've set the values that 
were explicitly removed by the developer. Library is fine.

--
assignee: terry.reedy -> 
components:  -IDLE, IO
nosy: +SilentGhost, orsenthil -terry.reedy
type:  -> behavior
versions:  -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-16 Thread Immo Wetzel


Immo Wetzel  added the comment:

ok where should I place this . IO or Library ?

If this is not a bug  I really have to do some soul-searching

--
assignee:  -> terry.reedy
components: +IDLE
nosy: +terry.reedy
versions: +Python 3.6 -Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

As far as I can see, this issue has nothing to do with IDLE as such.

Someone else should decide if this is a bug report or an enhancement request.

--
assignee: terry.reedy -> 
components:  -IDLE
stage:  -> test needed
versions: +Python 3.8 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-15 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy:  -terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36930] Windows proxy settings automatically used ... partly

2019-05-15 Thread Immo Wetzel


New submission from Immo Wetzel :

I do run python 2.7/3.7 on a windows 7 host.
This host is AD managed. As part of the group policy the internet settings are 
set to automatically proxy configuration.
The configuration works. cos IE and Chrome can reach external and internal 
hosts. Some of the internal are excluded from proxy via no proxy rules inside 
the pac file.

But python request and urllib2 are not able to reach the internal addresses 
which are excluded via the proxy file rules. Python always tries to get the 
data from the proxy.

the only solution was an extra environmental variable NO_PROXY with the ips not 
to be reached via the proxy.

these excluded IPs are common IPs and not private ! (90.0.0.0/8) is part of the 
pac exclusion

--
assignee: terry.reedy
components: IDLE, IO, Library (Lib), Windows
messages: 342601
nosy: iwetzel, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows proxy settings automatically used ... partly
versions: Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com