in reply to Re^2: Removing dot before cookie host/domain URL
in thread Removing dot before cookie host/domain URL
Again, I think you are mistaken.
$ cat > a.pl #!/usr/bin/perl use CGI; $query = new CGI; $cookie1 = $query->cookie( -domain=>'foobar.com', -name=>'TheCookie', -value=>'anything ', -expires=>'+24h', -path=>'/', -secure=> 0); print $query->header(-cookie=>$cookie1); print"<html> <body> Done. </body> </html>"; print $query->end_html; $ perl a.pl Set-Cookie: TheCookie=anything%20; domain=foobar.com; path=/; expires= +Sat, 25-Jun-2011 20:46:56 GMT Date: Fri, 24 Jun 2011 20:46:56 GMT Content-Type: text/html; charset=ISO-8859-1 <html> <body> Done. </body> </html> </body> </html> $
Upgrade your CGI?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Removing dot before cookie host/domain URL
by Anonymous Monk on Jun 25, 2011 at 00:56 UTC | |
by Anonymous Monk on Jun 25, 2011 at 01:11 UTC | |
by Anonymous Monk on Jun 25, 2011 at 05:36 UTC |