This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author volodyaa
Recipients BitTorment, facundobatista, jjlee, orsenthil, volodyaa, zathras
Date 2013-04-07.10:54:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365332056.82.0.560733757399.issue2756@psf.upfronthosting.co.za>
In-reply-to
Content
Tested on 2.7. The same bug exists:

127.0.0.1 - - [07/Apr/2013 13:17:39] "POST / HTTP/1.1" 200 -
('content-length', '11')
('accept-encoding', 'identity')
('connection', 'close')
('user-agent', 'Python-urllib/2.7')
('host', '127.0.0.1:8000')
('content-type', 'application/x-www-form-urlencoded')

Also, the workaround exists for that issue:
instead of using request.add_header have to use request.add_unredirected_header for the second call.

BTW, the same issue with 'Content-length' header. If use request.add_data the second time when the content length value leaves the same as for first request.

See steps to reproduce in attachments.
History
Date User Action Args
2013-04-07 10:54:16volodyaasetrecipients: + volodyaa, facundobatista, jjlee, orsenthil, zathras, BitTorment
2013-04-07 10:54:16volodyaasetmessageid: <1365332056.82.0.560733757399.issue2756@psf.upfronthosting.co.za>
2013-04-07 10:54:16volodyaalinkissue2756 messages
2013-04-07 10:54:16volodyaacreate