0

I am wondering what is the best way to read and write http headers in Joomla?

What do I need to achieve?

  • I want to read all requests headers
  • I want to add response headers
  • I want to control optional existing headers by removing them or modifying them
  • I want to ensure my code is the last part of a possible chain of handling the http headers, so nothing else may modify my headers

Is where any good documentation how Joomla handles http-header processing? Is there something around like a chained processing (similar to c# or java http handling)?

What would you suggest to solve my above mentioned bullet-requirements?

  • This is several (related) questions in one. Are you worried that your current programming is lacking? Can we see what you are using currently? If you have performed research and found some useful references, please include them so that we don't direct you to something that you have already read. – mickmackusa Jun 9 at 9:06
  • How far did you get with your development after reading this: api.joomla.org/cms-3/classes/Joomla.CMS.Http.Http.html ? Do you have an example situation to give your question context? – mickmackusa Jun 9 at 11:36
  • @mickmackusa thank you for the class reference. This is good to know there is a standard API the second question block is around how to create a plugin which intercepts all requests to change the http headers. Do you have a suggestion for this? Maybe also a book for developing in joomla? – laendle Jun 9 at 13:14
  • Sorry, I don't have anything more for you at the moment. I feel my role here (since I seldom "have the answers") is to help people to sharpen their questions so that the experienced and knowledgeable volunteers can swoop in and post great answers to clear and narrow questions. – mickmackusa Jun 9 at 13:15
  • @laendle for a good book on programming plugin for Joomla see if you can find a copy of Programming Joomla Plugins by Jisse Reitsma. I got a copy second hand off Amazon a little while back but I have since come across a .pdf of the book somewhere on the internet but can't remember where I saw it. Jisse is no longer doing Joomla work and links to the book on his site are now broken. Tim Plummer has another good book for starting with Joomla development that I use as a reference also. Both are for Joomla 3.x but worth the money in my view. – Irata Jun 10 at 4:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.