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:

[shippingtotal] & Formulas.db prob (2003) Fun with dates (1997) Finalizing Orders (2000) [WebDNA] Email time bug? YES, it's a bug! (2011) WebDNA Windows 5.0 sendmail bug (2003) Replace Statement (1997) Frames and WebCat (1997) Re:E-mailer application times out (1998) autosensing lanague selection (1997) Here's how to kill a Butler Database. (1997) Bugs still *not* fixed as promised ... (2000) [SHOWIF] (1997) triggers (2003) Mass Mail (2000) WebCatalog and WebTen (1997) [Price] (1997) [OT] Who's got a cool link (2002) [WebDNA] WordPress plugin (2020) RE: Formulas.db + Users.db (1997) Format all of a sudden doesn't work (1997)