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

RE: http headers for CP policy in perl script

From: Cheryl Cox <cheryl.cox@marketingtips.com>
Date: Thu, 21 Mar 2002 09:23:48 -0800
To: <www-p3p-policy@w3.org>
Message-ID: <ENEIKIODOIABNIILCPDNKEPJCEAA.cheryl.cox@marketingtips.com>

If you have mod_headers compiled into all
Apache installs, would you not need to
do this inside perl CGI scripts?

Cheryl


> -----Original Message-----
> From: www-p3p-policy-request@w3.org
> [mailto:www-p3p-policy-request@w3.org]On Behalf Of Lorrie Cranor
> Sent: Tuesday, March 19, 2002 1:31 PM
> To: Joel Bowers; www-p3p-policy@w3.org
> Subject: Re: http headers for CP policy in perl script
>
>
> 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 Thursday, 21 March 2002 12:25:08 GMT

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