fix logging and send params to server on POST calls