'Send a request header line to the server.
For example: h.putheader(\'Accept\', \'text/html\')'

def putheader(self, header, *values):

    if (self.__state != _CS_REQ_STARTED):
        raise CannotSendHeader()
    header = ('%s' % header)
    if (not _is_legal_header_name(header)):
        raise ValueError(('Invalid    header    name    %r' % (header,)))
    values = [str(v) for v in values]
    for one_value in values:
        if _is_illegal_header_value(one_value):
            raise ValueError(('Invalid    header    value    %r' % (one_value,)))
    hdr = ('%s:    %s' % (header, '\r\n DCTB '.join(values)))
    self._output(hdr)
