A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-August/145969.html below:

[Python-Dev] Lib/http/client.py: could it return an OSError with the current response?

[Python-Dev] Lib/http/client.py: could it return an OSError with the current response? [Python-Dev] Lib/http/client.py: could it return an OSError with the current response?Ivo Bellin Salarin ivo.bellinsalarin at gmail.com
Tue Aug 30 09:41:43 EDT 2016
Hi everybody,

Sorry for bothering you, this is my first post to the python-dev ML.

While using requests to tunnel a request via a proxy requiring user
authentication, I have seen that httplib (
https://hg.python.org/cpython/file/3.5/Lib/http/client.py#l831) raises the
message returned by the proxy, along with its status code (407) without
including the proxy response. This one could be very interesting to the
consumer, since it could contain some useful headers (like the supported
authentication schemes).

Would it be possible to change the http/client.py behavior in order to
raise an exception including the whole response?

If you don't see any problem with my proposal, how can I propose a pull
request? :-)

Thanks in advance,
Ivo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20160830/8a284073/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4