fix curl request post method