#!/bin/bash
# echo -n 'username=USERNAME&password=PASSWORD' > postdata; chmod 600 postdata

wget --no-check-certificate \
	'https://portal.plus.net/my.html?action=stable_rate' \
	-O /dev/null \
	--save-cookies=/dev/stdout \
	--keep-session-cookies 2>/dev/null | \
wget --no-check-certificate \
	--post-file=postdata \
	'https://portal.plus.net/my.html?action=stable_rate' \
	-O /dev/stdout \
	--load-cookies=/dev/stdin \
	--keep-session-cookies 2>/dev/null | \
grep 'Your current broadband speed is' | \
	cut -d '>' -f 2 | \
	cut -d '<' -f 1
