changed curl request to POST