Get xml / json data with curl post request