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

In some cases the HTTP::Cookies module does not delete cookies [rt.cpan.org #84712] #22

Open
oalders opened this issue Mar 30, 2017 · 0 comments

Comments

@oalders
Copy link
Member

oalders commented Mar 30, 2017

Migrated from rt.cpan.org#84712 (status was 'new')

Requestors:

Attachments:

From [email protected] on 2013-04-18 06:55:30:

Hi,

In some cases the HTTP::Cookies module does not delete cookies.
Here is the issue in detail:

- when the foo.com URL is requested the "Cookie_check=1" cookie is set
- then server redirects us to pass.foo.com
- while requesting pass.foo.com the "Cookie_check=" cookie is set 
- then server redirects us to ok.foo.com

On each step the server displays the STDOUT cookie.

Please view the examples of requests for w3m browser and LWP client (client.pl):


> tail -n 3 /etc/hosts
127.0.0.1 foo.com
127.0.0.1 pass.foo.com
127.0.0.1 ok.foo.com



> perl server.pl



> w3m -dump http://foo.com:8080
Received cookie: Cookie_check=1
Received cookie: Cookie_check=
Hello


> perl client.pl
Hello




> perl server.pl
undef at server.pl line 23.
Cookie_check=1 at server.pl line 29.
undef at server.pl line 35.
======
undef at server.pl line 23.
Cookie_check=1 at server.pl line 29.
Cookie_check=1 at server.pl line 35.
======

Sincerely,
Nick Kostyria
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

No branches or pull requests

1 participant