W3C home > Mailing lists > Public > www-p3p-policy@w3.org > March 2002

Re: http headers for CP policy in perl script

From: Lorrie Cranor <lorrie@research.att.com>
Date: Tue, 19 Mar 2002 16:30:48 -0500
Message-ID: <045601c1cf8d$56a29b00$9816cf87@barbaloot>
To: "Joel Bowers" <jb@jbmckee.com>, <www-p3p-policy@w3.org>
Thanks Joel! Let me just add a clarification...
This needs to be included in the script that is
*setting* the cookie. This may also be the script
that is reading the cookie, but in any case, it
is the script that is setting the cookie that is important.
I'm not sure that all third-party cookies will necessarily
be set by scripts.

Lorrie


----- Original Message -----
From: "Joel Bowers" <jb@jbmckee.com>
To: <www-p3p-policy@w3.org>
Sent: Tuesday, March 19, 2002 4:30 PM
Subject: Re: http headers for CP policy in perl script


> It actually turns out to be ridiculously simple.
>
> Put the following before any other print statements:
>
> print "policyref=\"http://www.thedomain.com/w3c/p3p.xml\", P3P: CP=\"NOI
DSP COR CURa ADMa DEVa TAIa OUR IND UNI COM NAV INT\"\n\n";
>
> And that is it!
>
> This should be pointed out on the W3 site.  As it is, it just says you
need to modify the server to insert the P3P code into the header whereas all
you need to do is add it into the script that is reading the cookie.  Since
a third party cookie is always going to be read by a script, putting the CP
policy in the script will probably always solve your problem without having
to do anything to the server related to HTTP headers.
>
> JB
>
> ----- Original Message -----
> From: "Brian" <brian@bmac.net>
> To: <www-p3p-policy@w3.org>
> Sent: Tuesday, March 19, 2002 11:52 AM
> Subject: http headers for CP policy in perl script
>
>
> > Hello,
> >
> > I have a perl script that sets a cookie.  IE 6 is rejecting that cookie
due
> > to it being a third party cookie.  How do I add the http headers to this
> > script so IE 6 will see the Compact Policy?
> >
> > Here is what I tried
> >
> > $h->header('P3P' =>
> > 'P3P:policyref="http://www.thedomain.com/w3c/p3p.xml",CP="NOI DSP COR
CURa
> > ADMa DEVa TAIa OUR IND UNI COM NAV INT"');
> >
> >
> > but this gives a 500 internal server error and the message Premature end
of
> > script headers.
> >
> > Any ideas on how to apply httpd headers to a perl script?
> >
> > Brian
>
>
Received on Tuesday, 19 March 2002 16:35:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 January 2012 12:13:10 GMT