def convert_to_http_field(field):
    """Convert a field from Title-Case to HTTP_UPPER_CASE.
    """
    field = field.upper().replace('-', '_')
    if not field.startswith('HTTP_'):
        field = 'HTTP_' + field
    return field
