'Create a new POST request.
Args:
url: The URL to post to, as QUrl.
data: A dict of data to send.'

def post(self, url, data=None):

    if (data is None):
        data = {}
    encoded_data = urllib.parse.urlencode(data).encode('utf-8')
    request = QNetworkRequest(url)
    request.setHeader(QNetworkRequest.ContentTypeHeader, 'application/x-www-form-urlencoded;charset=utf-8')
    reply = self._nam.post(request, encoded_data)
    self._handle_reply(reply)
