python protocol_error official true

http.client.CannotSendHeader

ID: python/http-client-cannotsendheader

Also available as: JSON · Markdown
80%Fix Rate
95%Confidence
0Evidence

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.x active

Root Cause

Attempt to send a header after request body has started being sent.

generic

Official Documentation

https://docs.python.org/3/library/http.html