I think the cookie parsing in curl is too strict. When a web server sends a
cookie with a blank expiration date (see example below) curl ignores it.
I know it's a rare case, but still, wouldn't it be logical to treat it as
a session cookie instead? Both firefox and IE do exactly that.