Skip to content

Cookie with negative max age causes error #524

Description

@NubeBuster

Cloudflare sets a cookie with a max-age to see if you are a real browser or not. HTMLUnit fails on adding this cookie and therefore is detected.

Error:
"WARNING: Adding cookie 'cf_chl_2=; Max-Age=-99999999;' failed; reason: 'Negative 'max-age' attribute: -99999999'."

Could this be changed so that there is an option for allowing negative max age. A negative max age is for setting a cookie until the browser is closed, in practise,

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions