Thread CGI/CGI::Simple - Cookies erzeugt falsches Datumsformat bei Expires? (8 answers)
Opened by GwenDragon at 2021-03-30 18:37

GwenDragon
 2021-03-30 18:37
#193182 #193182
User since
2005-01-17
14533 Artikel
Admin1
[Homepage]
user image
T:> perl -MCGI -E "say CGI::Cookie->new(-name=>q(test), -value=>42, -expires=>q(+1M))";
test=42; path=/; expires=Thu, 29-Apr-2021 16:36:01 GMT


T:\>perl -MCGI::Simple -E "say CGI::Simple->cookie(-name=>q(test), -value=>42, -expires=>q(+1M))";
test=42; path=/; expires=Thu, 29-Apr-2021 16:36:01 GMT


Solle das nicht normgemäß eher so sein (ohne Bndestriche):
test=42; path=/; expires=Thu, 29 Apr 2021 16:36:01 GMT



Ach Menno, immer diese RFCs.
Nach https://tools.ietf.org/html/rfc2616#section-3.3.1 ist das auch ok oder auch nicht?
Nach https://tools.ietf.org/html/rfc6265#section-5.1.1 ist auch ein - als Delimiter beim Datum o.ä. erlaubt?
Oder interpretier ich falsch?
Kann jemand mir genau sagen was nun Sache ist?
Last edited: 2021-03-31 13:10:22 +0200 (CEST)
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread CGI/CGI::Simple - Cookies erzeugt falsches Datumsformat bei Expires?