Added code to send params for PUT/POST