Code is working. Needs to test against real server and log the
transmitted data