Skip to content

Cookie with negative max age causes error #524

@Nubebuster

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,

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