curl with get post put