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 <>
Tested on 2.7. The same bug exists: - - [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', '')
('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.
Date User Action Args
2013-04-07 10:54:16volodyaasetrecipients: + volodyaa, facundobatista, jjlee, orsenthil, zathras, BitTorment
2013-04-07 10:54:16volodyaasetmessageid: <>
2013-04-07 10:54:16volodyaalinkissue2756 messages
2013-04-07 10:54:16volodyaacreate