A remote HTTP server can set a cookie that curl accepts and writes to a Netscape cookie jar but cannot reload. On subsequent curl invocations using the same cookie jar path, curl fails before connecting and replaces the cookie jar with an empty file, deleting cookies for unrelated domains.