function postRequest(url, text){ var xhr = new XMLHttpRequest(); xhr.open('POST', url) xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); xhr.send(text);}postRequest('http://192.168.1.13:8080', ‘title=hello&text=world’);postRequest('https://192.168.1.13:8443', ‘title=hello&text=world’);import requestsr = requests.post('http://192.168.1.13:8080', data={'title':'hello','text':'world'})r = requests.post('https://192.168.1.13:8443', data={'title':'hello','text':'world'}, verify=False)Note:
HTTPS is not secure, only for Javascript because of the same-origin policy (at least until I add a custom keystore feature)
accessibility → notification reminder
Use automation app such as Tasker, MacroDroid
Alternative apps: Pushbullet can send notifications from desktop to phone but uses a third party