[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 --000000000000e0499e05759ab745 Content-Type: text/plain; charset="UTF-8" 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=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 on the template 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 --000000000000e0499e05759ab745 Content-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>
</FilesMatch>=

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 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 --000000000000e0499e05759ab745-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Should I be able to use [setmimeheader name=Content-Type ? (Stuart Tremain 2018)
  2. Re: [WebDNA] Should I be able to use [setmimeheader name=Content-Type ? (Donovan Brooke 2018)
  3. [WebDNA] Should I be able to use [setmimeheader name=Content-Type ? (Tom Duke 2018)
2003 --000000000000e0499e05759ab745 Content-Type: text/plain; charset="UTF-8" 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=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 on the template 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 --000000000000e0499e05759ab745 Content-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>
</FilesMatch>=

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 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 --000000000000e0499e05759ab745-- . Tom Duke

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:

WebCatalog host... (2000) Online reference (1997) help (2001) Re:HTTP header line is too long? (1997) WebCat2b15MacPlugin - [protect] (1997) WebDNA deletes major DB data big time (2004) Open Databases on Restart (1999) [WebDNA] WebDNA v7 questions =?UTF-8?B?4oCmLi4=?= (2011) unable to run webcatalog locally (1998) [numfound] within summ=t ??? (2000) Car Database (2002) ServerQuestion (2000) Reversed words (1997) denied access (1997) Extract my page name (2006) The IBC root beer has arrived! (1997) So many lookers, hey smith micro (2003) Erotic Sites (1997) taxTotal, grandTotal (1997) Problems with [Applescript] (1997)