[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 = 114386
interpreted = N
texte = 2003--000000000000e0499e05759ab745Content-Type: text/plain; charset="UTF-8"Hi all,WebDNA 8.6.1 ServerApache 2CentOS7Should I be able to change the 'Content-Type' header on a template usingsomething like:[setmimeheader name=Content-Type&value=application/json; charset=utf-8]I can't get it to work. I have to use a htaccess file to set the header onthe template
AddType application/json tplIt 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 settingor something to allow this?Thanks- Tom--000000000000e0499e05759ab745Content-Type: text/html; charset="UTF-8"Content-Transfer-Encoding: quoted-printable
Hi all,
WebDNA 8.6.1 Server
Apache 2
CentOS7
Should I be able to change the 'Content-Type' h=eader on a template using something like:
=
[setmimeheader name=3DContent-Type&value=3Dapplication=/json; charset=3Dutf-8]
I can't get it to work.=C2=A0 I have to =use a htaccess file to set the header on the template
<FilesMatch "=my-template.tpl">
<=div>
=C2=A0 =C2=A0AddType application/json tpl
<=/div>
It means I can't serve o=ut different content types from the one template. This appears to be possib=le in PHP.=C2=A0 Do I need to=C2=A0change an Apache setting or=C2=A0somethi=ng to allow=C2=A0this?
<=font color=3D"#000000" face=3D"arial, helvetica, sans-serif">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--000000000000e0499e05759ab745--.
Associated Messages, from the most recent to the oldest: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...