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:

Bug or syntax error on my part? (1997) bug in Webcat OSX (1999) Viewing old carts (was FEW QUESTIONS) (1997) Commas in search (1998) Just Testing (1997) Strange intermittent WebDNA problems Workaround (2008) creator code (1997) Table Trouble... (2005) Nesting Search Within Tag? (1997) PayFlow Pro - Changing the Amount that was Authorized (2003) More on the email templates (I like it) (1997) Lookup Notfound (1998) macosx 1 process, linux N processes, macosx chokes under load (2001) syntax question, not in online refernce (1997) WebCatalog Hosting (1996) 2.1b3 --> way slow (1997) Bug? (1997) Requiring that certain fields be completed (1997) Re:2nd WebCatalog2 Feature Request (1996) Shipping costs question (2002)