Re: [WebDNA] Should I be able to use [setmimeheader name=Content-Type
This WebDNA talk-list message is from 2018
It keeps the original formatting.
numero = 114388
interpreted = N
texte = 2005--Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiSpeaking of http headers, my Varnish cache sends all kinds of useful =information via X-headers but I am unable to gain access to them. =[listmimeheaders] seems to be filtered in some way. None of the =X-headers are returned.Mike> On Sep 11, 2018, at 9:10 AM, Tom Duke
> wrote:>=20> Hi all,>=20> WebDNA 8.6.1 Server> Apache 2> CentOS7>=20> Should I be able to change the 'Content-Type' header on a template =using something like:>=20> [setmimeheader name=3DContent-Type&value=3Dapplication/json; =charset=3Dutf-8]>=20> I can't get it to work. I have to use a htaccess file to set the =header on the template>=20> > AddType application/json tpl> >=20> It means I can't serve out different content types from the one =template. This appears to be possible in PHP. Do I need to change an =Apache setting or something to allow this?>=20> Thanks> - Tom>=20> --------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list =talk@webdna.us To unsubscribe, E-mail to: =talk-leave@webdna.us archives: =http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: =support@webdna.us --Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiSpeaking of http =headers, my Varnish cache sends all kinds of useful information via =X-headers but I am unable to gain access to them. = [listmimeheaders] seems to be filtered in some way. None of =the X-headers are returned.
Mike
Hi all,
WebDNA 8.6.1 Server
Apache =2
CentOS7
Should I be able to change the 'Content-Type' =header on a template using something like:
[setmimeheader =name=3DContent-Type&value=3Dapplication/json; =charset=3Dutf-8]
I can't get it to work. I have to use a =htaccess file to set the header on the template
<FilesMatch ="my-template.tpl">
AddType application/json =tpl
=
It means I can't serve out different content =types from the one template. This appears to be possible in PHP. =Do I need to change an Apache setting or something to =allow this?
Thanks
- Tom
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
talk@webdna.usTo unsubscribe, E-mail to:
talk-leave@webdna.usarchives:
http://www.webdna.us/page.dna?numero=3D55Bug Reporting:
support@webdna.us
=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7--.
Associated Messages, from the most recent to the oldest:
2005--Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiSpeaking of http headers, my Varnish cache sends all kinds of useful =information via X-headers but I am unable to gain access to them. =[listmimeheaders] seems to be filtered in some way. None of the =X-headers are returned.Mike> On Sep 11, 2018, at 9:10 AM, Tom Duke > wrote:>=20> Hi all,>=20> WebDNA 8.6.1 Server> Apache 2> CentOS7>=20> Should I be able to change the 'Content-Type' header on a template =using something like:>=20> [setmimeheader name=3DContent-Type&value=3Dapplication/json; =charset=3Dutf-8]>=20> I can't get it to work. I have to use a htaccess file to set the =header on the template>=20> > AddType application/json tpl> >=20> It means I can't serve out different content types from the one =template. This appears to be possible in PHP. Do I need to change an =Apache setting or something to allow this?>=20> Thanks> - Tom>=20> --------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list =talk@webdna.us To unsubscribe, E-mail to: =talk-leave@webdna.us archives: =http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: =support@webdna.us --Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiSpeaking of http =headers, my Varnish cache sends all kinds of useful information via =X-headers but I am unable to gain access to them. =
[listmimeheaders] seems to be filtered in some way. None of =the X-headers are returned.
Mike
Hi all,
WebDNA 8.6.1 Server
Apache =2
CentOS7
Should I be able to change the 'Content-Type' =header on a template using something like:
[setmimeheader =name=3DContent-Type&value=3Dapplication/json; =charset=3Dutf-8]
I can't get it to work. I have to use a =htaccess file to set the header on the template
<FilesMatch ="my-template.tpl">
AddType application/json =tpl
=
It means I can't serve out different content =types from the one template. This appears to be possible in PHP. =Do I need to change an Apache setting or something to =allow this?
Thanks
- Tom
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
talk@webdna.usTo unsubscribe, E-mail to:
talk-leave@webdna.usarchives:
http://www.webdna.us/page.dna?numero=3D55Bug Reporting:
support@webdna.us
=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7--.
Michael Davis
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
2.0Beta Command Ref (can't find this instruction) (1997)
Rhapsody? (1997)
Still having problems with Authen (1997)
I'm new be kind (1997)
F3 crashing server (1997)
lookup command (1999)
Physical Proximity searches (2000)
Problem (1997)
I have troubles to send message out (1998)
I want a 404 (2005)
RE: Dates! (1998)
I'm Baaaaaaaaaack - Questions! (2000)
Re2: AAgghh!! Help, please. SSL strikes again. (1997)
[delete] problem (1997)
double lines in sendmail (2008)
UPDATE PROBLEM (1997)
unable to launch acgi in WebCat (1997)
Writefile doesn't work, which permissions to use? (2005)
WebCat2: Items xx to xx shown, etc. (1997)
Off topic: to Jeroen (bouncing email) (2000)