created generic function for PUT made url changes in cURL call, handled the url and special characters also modified the get requests for PUT