import logging
import requests


def request_playlist_html(playlist_url, headers):
    """Send a request to a YouTube playlist webpage.

    Parameters
    ----------
    playlist_url : str
        URL to the playlist webpage.
    headers : Dict[str, str]
        HTTP request headers.

    Returns
    -------
    str
        Response HTML

    """
    logging.info("Requesting YouTube playlist at %s", playlist_url)
    response = requests.get(playlist_url, headers=headers)
    return response.text