Debug output added to check HTTP results