Added debug messages to track HTTP payload