since we use the curl write handler we can use curl's decoder