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 = 114387
interpreted = N
texte = 2004 --Apple-Mail-168C4442-E785-4226-A97F-8F4198B599FC Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable I fixed a bug long ago regarding being able set headers using setmimeheader i= n the server app... maybe the fix was reverted? I think there was another fi= x or two that was reverted in the plugin, unfortunately.=20 D. Brooke Mobile > On Sep 11, 2018, at 11: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 s= omething 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 o= n the template >=20 > > AddType application/json tpl > >=20 > It means I can't serve out different content types from the one template. T= his 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 s= ent to you because you are subscribed to the mailing list talk@webdna.us To u= nsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/p= age.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-168C4442-E785-4226-A97F-8F4198B599FC Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I fixed a bug long ago regarding being able= set headers using setmimeheader in the server app... maybe the fix was reve= rted? I think there was another fix or two that was reverted in the plugin, u= nfortunately. 

D. Brooke Mobile

On Sep 11, 2018, at 11:10 AM, Tom Duke <tom@revolutionaries.ie> wrote:

Hi all,

WebDNA 8.6.1 Serve= r
Apache 2
CentOS7

Should I be able to change the 'Cont= ent-Type' header on a template using something like:

[setmimeheader name=3DContent-Type&value=3Dapplica= tion/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= ">
  &n= bsp;AddType application/json tpl
=
</FilesMatch>
<= /div>

It means I can't serve out different content types from t= he 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 to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leav= e@webdna.us archives: http://www.w= ebdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us= --------------------------------------------------------- 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-168C4442-E785-4226-A97F-8F4198B599FC-- . 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)
2004 --Apple-Mail-168C4442-E785-4226-A97F-8F4198B599FC Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable I fixed a bug long ago regarding being able set headers using setmimeheader i= n the server app... maybe the fix was reverted? I think there was another fi= x or two that was reverted in the plugin, unfortunately.=20 D. Brooke Mobile > On Sep 11, 2018, at 11: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 s= omething 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 o= n the template >=20 > > AddType application/json tpl > >=20 > It means I can't serve out different content types from the one template. T= his 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 s= ent to you because you are subscribed to the mailing list talk@webdna.us To u= nsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/p= age.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-168C4442-E785-4226-A97F-8F4198B599FC Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I fixed a bug long ago regarding being able= set headers using setmimeheader in the server app... maybe the fix was reve= rted? I think there was another fix or two that was reverted in the plugin, u= nfortunately. 

D. Brooke Mobile

On Sep 11, 2018, at 11:10 AM, Tom Duke <tom@revolutionaries.ie> wrote:

Hi all,

WebDNA 8.6.1 Serve= r
Apache 2
CentOS7

Should I be able to change the 'Cont= ent-Type' header on a template using something like:

[setmimeheader name=3DContent-Type&value=3Dapplica= tion/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= ">
  &n= bsp;AddType application/json tpl
=
</FilesMatch>
<= /div>

It means I can't serve out different content types from t= he 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 to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leav= e@webdna.us archives: http://www.w= ebdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us= --------------------------------------------------------- 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-168C4442-E785-4226-A97F-8F4198B599FC-- . Donovan Brooke

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:

triggers.db (1999) shopping cart bug? or link? (1999) Hosts who have upgraded to v5.0? (2003) Cart Numbers (1997) Robert Minor duplicate mail (1997) [Announce]: Web server security and password protection (1997) webcat-sys (1998) multiple skus (2000) Error Lob.db records error message not name (1997) [WebDNA] WebDNA eCommerce (2019) Carrying over data? (1997) WebCat2final1 crashes (1997) Reverse dating (1999) [ShowCart] and GET vs. POST (1997) math a various prices (1997) Register First (2000) 2.0Beta Command Ref (can't find this instruction) (1997) [WebDNA] Using WebDNA with MAMP (2010) convertWords... NEW (2001) quitting (1997)