def putheader(self, header, value):
        """Send a request header line to the server.

        For example: h.putheader('Accept', 'text/html')
        """
        if self.__state != _CS_REQ_STARTED:
            raise CannotSendHeader()

        str = '%s: %s' % (header, value)
        self._output(str)
dataset/ETHPy150Open babble/babble/include/jython/Lib/httplib.py/HTTPConnection.putheader/original