changing request to use posted params