get cart data before processing the curl response