Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3497840
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:25:10+00:00 2026-05-18T12:25:10+00:00

I need to add a HTTP header field in the responses of a section

  • 0

I need to add a HTTP header field in the responses of a section of my site, the package instace (my section) is being viewed in a IFRAME and I want to declare a p3p field in order to be able to store cockies in IE 6/7/8 (login doesn’t work well), I have an idea of how to do it in PHP and is quite simple:

<?php
header('P3P: CP="CAO PSA OUR"');
?>

but I didn’t found how to do it in TCL/openacs, thanks for the help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:25:11+00:00Added an answer on May 18, 2026 at 12:25 pm

    Based on Jim Lynch’s response when you asked this question elsewhere, you just need to add it to the set of headers being produced for the page.
    I’d guess that something like this is probably easiest (assuming you don’t want to hard-code the contents of the header; if you did, you could simplify a little):

    set cpflags "CAO PSA OUR"
    ns_set cput [ns_conn outputheaders] "P3P" "CP=\"$cpflags\""
    

    To understand it, you need to read about ns_conn and ns_set from the AOLserver docs, as well as set from the standard Tcl documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to add to my message something like this: <soap:Header> <wsse:Security xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd soap:mustUnderstand=1>
We have an ASP.NET application and I need to add a custom HTTP header
I need to add this attribute ( xmlns:wsa=http://www.w3.org/2005/08/addressing ) to the soap header, like
I need to add a rule in the firewall so that my self-hosted http
I need to add a soap header to my web service. I plan to
I need to send more than a Set-Cookie HTTP header using HttpWebRequest class. Problem
alt text http://agricam.net/test.gif I need to add a row dynamically in SQL after the
here is the page where i need to add CSS: http://upload.wikimedia.org/wikipedia/commons/a/a5/Map_of_USA_with_state_names.svg since there is
I need add a new user group for mediawiki. The new group has more
need to add a 2nd css stylesheet to a page. do i add a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.