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:

Shopping carts and reloading pages (1997) PLEASE REMOVE MY EMAIL ADDRESS (1997) tpl and Explorer (1998) Advice on MacOS & TCP Connects (2000) GuestBook example (1997) Quitting WebMerchant ? (1997) Grouping fields problem (1998) [taxRate] [TaxTotal] ? (1997) quit command on NT (1997) Help name our technology! I found it (1997) frames & carts (1997) Problem with CC problem ? (1997) ooops...WebCatalog [FoundItems] Problem - LONG - (1997) Not really WebCat- (1997) PCS Frames (1997) [protect] on NT? (1997) WebCat2b15MacPlugin - [protect] (1997) WCS Newbie question (1997) [TaxableTotal] - not working with AOL and IE (1997) [WebDNA] [raw] tag with [interpret] question (2010)