http: Improve debug related to cookies
Fix broken date parsing

Fixes #1708