Fixed setting of put data and now adding it to curl command