<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython.git/Lib/test/test_urllib2.py, branch master</title>
<subtitle>
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/'/>
<entry>
<title>Issue #12319: Always send file request bodies using chunked encoding</title>
<updated>2016-08-27T01:39:26+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-08-27T01:39:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=058e6a49c6e7b2847286eea5284a89b2757148d9'/>
<id>058e6a49c6e7b2847286eea5284a89b2757148d9</id>
<content type='text'>
The previous attempt to determine the file?s Content-Length gave a false
positive for pipes on Windows.

Also, drop the special case for sending zero-length iterable bodies.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The previous attempt to determine the file?s Content-Length gave a false
positive for pipes on Windows.

Also, drop the special case for sending zero-length iterable bodies.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #12319: Support for chunked encoding of HTTP request bodies</title>
<updated>2016-08-24T06:33:33+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-08-24T06:33:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=1d17079876f2e0b64a048eee2c1d11f1b4f7815e'/>
<id>1d17079876f2e0b64a048eee2c1d11f1b4f7815e</id>
<content type='text'>
When the body object is a file, its size is no longer determined with
fstat(), since that can report the wrong result (e.g. reading from a pipe).
Instead, determine the size using seek(), or fall back to chunked encoding
for unseekable files.

Also, change the logic for detecting text files to check for TextIOBase
inheritance, rather than inspecting the ?mode? attribute, which may not
exist (e.g. BytesIO and StringIO).  The Content-Length for text files is no
longer determined ahead of time, because the original logic could have been
wrong depending on the codec and newline translation settings.

Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the body object is a file, its size is no longer determined with
fstat(), since that can report the wrong result (e.g. reading from a pipe).
Instead, determine the size using seek(), or fall back to chunked encoding
for unseekable files.

Also, change the logic for detecting text files to check for TextIOBase
inheritance, rather than inspecting the ?mode? attribute, which may not
exist (e.g. BytesIO and StringIO).  The Content-Length for text files is no
longer determined ahead of time, because the original logic could have been
wrong depending on the codec and newline translation settings.

Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #17214: Percent-encode non-ASCII bytes in redirect targets</title>
<updated>2016-05-16T01:14:20+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-05-16T01:14:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=132296ddbb141d955022bb2002e15d6448965576'/>
<id>132296ddbb141d955022bb2002e15d6448965576</id>
<content type='text'>
Some servers send Location header fields with non-ASCII bytes, but "http.
client" requires the request target to be ASCII-encodable, otherwise a
UnicodeEncodeError is raised. Based on patch by Christian Heimes.

Python 2 does not suffer any problem because it allows non-ASCII bytes in the
HTTP request target.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some servers send Location header fields with non-ASCII bytes, but "http.
client" requires the request target to be ASCII-encodable, otherwise a
UnicodeEncodeError is raised. Based on patch by Christian Heimes.

Python 2 does not suffer any problem because it allows non-ASCII bytes in the
HTTP request target.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #14132: Fix redirect handling when target is just a query string</title>
<updated>2016-05-16T01:07:13+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2016-05-16T01:07:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=004b7d05012bce872115361dfe3aa4367cf94e46'/>
<id>004b7d05012bce872115361dfe3aa4367cf94e46</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #26892: Honor debuglevel flag in urllib.request.HTTPHandler.</title>
<updated>2016-05-13T08:32:42+00:00</updated>
<author>
<name>Senthil Kumaran</name>
<email>senthil@uthcode.com</email>
</author>
<published>2016-05-13T08:32:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=59adf6ab1612744f922a834281353b736f87274e'/>
<id>59adf6ab1612744f922a834281353b736f87274e</id>
<content type='text'>
Patch contributed by Chi Hsuan Yen.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Patch contributed by Chi Hsuan Yen.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #2202: Fix UnboundLocalError in AbstractDigestAuthHandler.get_algorithm_impls</title>
<updated>2016-03-06T14:16:40+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-03-06T14:16:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=aecc893b71bf403c9b3abd4fc162a37104aedd68'/>
<id>aecc893b71bf403c9b3abd4fc162a37104aedd68</id>
<content type='text'>
Raise ValueError if algorithm is not MD5 or SHA.

Initial patch by Mathieu Dupuy.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Raise ValueError if algorithm is not MD5 or SHA.

Initial patch by Mathieu Dupuy.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #23887: urllib.error.HTTPError now has a proper repr() representation.</title>
<updated>2015-04-22T21:35:54+00:00</updated>
<author>
<name>Facundo Batista</name>
<email>facundo@taniquetil.com.ar</email>
</author>
<published>2015-04-22T21:35:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=8429b68d1ea8bf93ec1949c772eaed93094719d5'/>
<id>8429b68d1ea8bf93ec1949c772eaed93094719d5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>#7159: generalize urllib prior auth support.</title>
<updated>2015-04-16T20:36:18+00:00</updated>
<author>
<name>R David Murray</name>
<email>rdmurray@bitdance.com</email>
</author>
<published>2015-04-16T20:36:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=4ee310b7b10d007f683f275da48e7be3a6358037'/>
<id>4ee310b7b10d007f683f275da48e7be3a6358037</id>
<content type='text'>
This fix is a superset of the functionality introduced by the issue #19494
enhancement, and supersedes that fix.  Instead of a new handler, we have a new
password manager that tracks whether we should send the auth for a given uri.
This allows us to say "always send", satisfying #19494, or track that we've
succeeded in auth and send the creds right away on every *subsequent* request.
The support for using the password manager is added to AbstractBasicAuth,
which means the proxy handler also now can handle prior auth if passed
the new password manager.

Patch by Akshit Khurana, docs mostly by me.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fix is a superset of the functionality introduced by the issue #19494
enhancement, and supersedes that fix.  Instead of a new handler, we have a new
password manager that tracks whether we should send the auth for a given uri.
This allows us to say "always send", satisfying #19494, or track that we've
succeeded in auth and send the creds right away on every *subsequent* request.
The support for using the password manager is added to AbstractBasicAuth,
which means the proxy handler also now can handle prior auth if passed
the new password manager.

Patch by Akshit Khurana, docs mostly by me.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #23387: Skip test_issue16464 if it raises an 5xx error.</title>
<updated>2015-03-02T04:01:37+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2015-03-02T04:01:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=a4d28fb3ad47069f4040709821ddae436eb20abc'/>
<id>a4d28fb3ad47069f4040709821ddae436eb20abc</id>
<content type='text'>
Also, remove support.run_doctest() since there is no doctests in
test_urllib2 and urllib.request.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, remove support.run_doctest() since there is no doctests in
test_urllib2 and urllib.request.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #23387: Skip test_issue16464 if it raises an 5xx error.</title>
<updated>2015-03-02T04:01:01+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2015-03-02T04:01:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython.git/commit/?id=279b1a1cfbbf3ab39da3b05971578fbe8ee0e958'/>
<id>279b1a1cfbbf3ab39da3b05971578fbe8ee0e958</id>
<content type='text'>
Also, remove support.run_doctest() since there is no doctests in
test_urllib2 and urllib.request.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, remove support.run_doctest() since there is no doctests in
test_urllib2 and urllib.request.
</pre>
</div>
</content>
</entry>
</feed>
