Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught InvalidArgumentException: The cookie value """" contains invalid characters. #265

Closed
hwiorn opened this issue Jun 9, 2021 · 1 comment · Fixed by #269
Closed

Comments

@hwiorn
Copy link

hwiorn commented Jun 9, 2021

Similar to #236

I am trying to make brunch.co.kr.txt. I tested https://brunch.co.kr/@brandonpark/4.

The HTTP response cookie is

Set-Cookie: lwm=""; Domain=brunch.co.kr; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/

I couldn't retrieve HTML data using the Cookie workaround until I added " into validateValue regex expression of Cookie(vendor/php-http/message/src/Cookie.php).

http_header(Cookie): lwm=1; bid=1

How can I get the site article properly?

@j0k3r
Copy link
Owner

j0k3r commented Oct 5, 2021

Finally I copy/pasted the Cookie plugin and reject cookie which aren't valid instead. So there is no more exception thrown in that case.
It should work fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants