fix pings and timeouts
adding appname as the browser
encode all parameters correctly