import requests


def tplink_post(url: str):
    """ Issue a POST to the device. The Content-Type header seems to be required by some devices."""

    _response = requests.post(url, timeout=5, headers={"Content-Type":"application/x-www-form-urlencoded",})
    _response.raise_for_status() 

    return _response