Update Curl post query

Post query building  has been simplified.