[issue5038] urrlib2/httplib doesn't reset file position between requests

2020-11-04 Thread Irit Katriel
Change by Irit Katriel : -- components: +Documentation stage: patch review -> needs patch versions: +Python 3.10, Python 3.9 -Python 2.6 ___ Python tracker ___

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-02-17 Thread nr
nr added the comment: the pull request now passed the build checks, please review the code. -- ___ Python tracker ___ ___

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-02-17 Thread nr
nr added the comment: I will fix the build errors first. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-02-17 Thread nr
nr added the comment: I added a new pull request. Martin, you are right I realized when looking through the code that just setting the file pointer to zero inside http lib might interfere with requests that don't have authentication enabled. The new pull requests does number 2.) of your

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-02-16 Thread nr
Change by nr : -- pull_requests: +11930 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-02-15 Thread Martin Panter
Martin Panter added the comment: For 3.7+ (where iterable objects are supported), I suggest: 1. Document the problem as a limitation of handlers like AbstractBasicAuthHandler, and consider raising an exception instead of trying to upload a file or iterable a second time. 2. Clarify the

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-02-15 Thread nr
nr added the comment: PR 11843 should fix the issue in master, I didn't check python 2.6 or prior versions. The problem is that in the first request sent to HTTP service the POST data is sent correctly. After that the HTTP server responds with 401 and the request is resent but the mmap file

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-02-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +11873 stage: test needed -> patch review ___ Python tracker ___ ___

[issue5038] urrlib2/httplib doesn't reset file position between requests

2019-01-22 Thread David Heiberg
Change by David Heiberg : -- nosy: +dheiberg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5038] urrlib2/httplib doesn't reset file position between requests

2018-09-02 Thread Martin Panter
Martin Panter added the comment: Here is a demonstration script in case it helps. I haven’t tested it with versions before Python 2.6. Older versions send “Content-Length: 11”, but leave the server hanging trying to read the data. Newer versions (I presume since Issue 12319, 3.6+) send a

[issue5038] urrlib2/httplib doesn't reset file position between requests

2018-09-02 Thread Lorenz Mende
Lorenz Mende added the comment: Issue shall be closed, as no reproduction code is provided. No patch provided and no comments since 2015. -- nosy: +LorenzMende ___ Python tracker

[issue5038] urrlib2/httplib doesn't reset file position between requests

2015-04-15 Thread Martin Panter
Martin Panter added the comment: Actually, I do not think any “Expect: 100-continue” headers are explicitly sent by the Python standard library. The Python client does not support waiting for a “100 Continue” response; see Issue 1346874. There is Issue 23740 opened about fixing or clarifying

[issue5038] urrlib2/httplib doesn't reset file position between requests

2013-03-30 Thread Anthony Kong
Changes by Anthony Kong anthony.hw.k...@gmail.com: -- nosy: +Anthony.Kong ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5038 ___ ___

[issue5038] urrlib2/httplib doesn't reset file position between requests

2013-03-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, this requires triaging in terms of is the feature request still applicable. Except 100 is sent by httplib and the support for this was added few years ago, much later then this bug was originally raised. -- assignee: - orsenthil

[issue5038] urrlib2/httplib doesn't reset file position between requests

2009-04-22 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- keywords: +easy priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5038 ___ ___

[issue5038] urrlib2/httplib doesn't reset file position between requests

2009-02-12 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- nosy: +ajaksu2, orsenthil stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5038 ___

[issue5038] urrlib2/httplib doesn't reset file position between requests

2009-02-12 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- nosy: +jjlee ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5038 ___ ___ Python-bugs-list mailing list

[issue5038] urrlib2/httplib doesn't reset file position between requests

2009-01-23 Thread jan matejek
New submission from jan matejek jmate...@suse.cz: since 2.6 httplib supports reading from file-like objects. Now consider the following situation: There are two handlers in urrlib2, first is plain http, second is basic auth. I want to POST a file to a service, and pass the open file object as

[issue5038] urrlib2/httplib doesn't reset file position between requests

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: This happens in other implementations too, not just urllib2. If the server supports it, the best way is to send an 'Expect: 100- Continue' header field before attempting to send the actual file. -- nosy: +gagenellina