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 = 114389
interpreted = N
texte = 2006 --Apple-Mail-F36AF128-D4F8-4D4A-A273-64FD30C73E91 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mmmmmm, that explains why I had a similar problem. Ended up changing the ext= ension and doing it through the server.=20 Regards Stuart Tremain Pharoah Lane Software=20 7/76 Reserve Road=20 Artarmon NSW 2064 AUSTRALIA +612 8971 4431 > On 12 Sep 2018, at 3:16 am, Donovan Brooke wrote: >=20 > I fixed a bug long ago regarding being able set headers using setmimeheade= r in the server app... maybe the fix was reverted? I think there was another= fix or two that was reverted in the plugin, unfortunately.=20 >=20 > D. Brooke Mobile >=20 >> 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=3Dut= f-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.= This appears to be possible in PHP. Do I need to change an Apache setting o= r something to allow this? >>=20 >> Thanks >> - Tom >>=20 >> --------------------------------------------------------- This message is= sent to you because you are subscribed to the mailing list talk@webdna.us T= o unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us > --------------------------------------------------------- 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-F36AF128-D4F8-4D4A-A273-64FD30C73E91 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mmmmmm, that explains why I had a similar p= roblem. Ended up changing the extension and doing it through the server.&nbs= p;

Regards
Stuart Tremain

Pharoah Lane Software =
7/76 Re= serve Road 
Artarmon NSW 2064
AUSTRALIA
+612 8971 4431
<= div>
On 12 Sep 2018, at 3:16 am, Donovan Brooke <dbrooke@euca.us> wrote:

I fixed a bug long ago regarding being able set headers using setmime= header in the server app... maybe the fix was reverted? I think there was an= other fix or two that was reverted in the plugin, unfortunately. 
D. Brooke Mobile

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

Hi all,

WebDNA 8.6.1 Server
Apache 2
CentOS7

Should I be able to change the 'Content-Type' header on a templat= e using something like:

[setm= imeheader name=3DContent-Type&value=3Dapplication/json; charset=3Dutf-8]=

I can't get it to work.  I have to use a htaccess file to set the he= ader on the template

<= /div>
<= div>
<FilesMatch "my-template.tpl">
   AddType application/json= tpl
</Files= Match>

<= div>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&= nbsp;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-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-F36AF128-D4F8-4D4A-A273-64FD30C73E91-- . 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)
2006 --Apple-Mail-F36AF128-D4F8-4D4A-A273-64FD30C73E91 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mmmmmm, that explains why I had a similar problem. Ended up changing the ext= ension and doing it through the server.=20 Regards Stuart Tremain Pharoah Lane Software=20 7/76 Reserve Road=20 Artarmon NSW 2064 AUSTRALIA +612 8971 4431 > On 12 Sep 2018, at 3:16 am, Donovan Brooke wrote: >=20 > I fixed a bug long ago regarding being able set headers using setmimeheade= r in the server app... maybe the fix was reverted? I think there was another= fix or two that was reverted in the plugin, unfortunately.=20 >=20 > D. Brooke Mobile >=20 >> 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=3Dut= f-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.= This appears to be possible in PHP. Do I need to change an Apache setting o= r something to allow this? >>=20 >> Thanks >> - Tom >>=20 >> --------------------------------------------------------- This message is= sent to you because you are subscribed to the mailing list talk@webdna.us T= o unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.u= s/page.dna?numero=3D55 Bug Reporting: support@webdna.us > --------------------------------------------------------- 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-F36AF128-D4F8-4D4A-A273-64FD30C73E91 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mmmmmm, that explains why I had a similar p= roblem. Ended up changing the extension and doing it through the server.&nbs= p;

Regards
Stuart Tremain

Pharoah Lane Software =
7/76 Re= serve Road 
Artarmon NSW 2064
AUSTRALIA
+612 8971 4431
<= div>
On 12 Sep 2018, at 3:16 am, Donovan Brooke <dbrooke@euca.us> wrote:

I fixed a bug long ago regarding being able set headers using setmime= header in the server app... maybe the fix was reverted? I think there was an= other fix or two that was reverted in the plugin, unfortunately. 
D. Brooke Mobile

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

Hi all,

WebDNA 8.6.1 Server
Apache 2
CentOS7

Should I be able to change the 'Content-Type' header on a templat= e using something like:

[setm= imeheader name=3DContent-Type&value=3Dapplication/json; charset=3Dutf-8]=

I can't get it to work.  I have to use a htaccess file to set the he= ader on the template

<= /div>
<= div>
<FilesMatch "my-template.tpl">
   AddType application/json= tpl
</Files= Match>

<= div>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&= nbsp;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-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-F36AF128-D4F8-4D4A-A273-64FD30C73E91-- . Stuart Tremain

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:

Auto Unsubscribe (2000) my price won't move (1997) hideif/showif causes error if wrapped around searches (2003) redirect with frames (1997) Problem with updating to 2.1.1 (1998) this works sometimes and sometimes not (1997) Pithy questions on webcommerce & siteedit (1997) Bug Report, maybe (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Rumpus/Typhoon modules included in Typhoon ... (1997) Exists? (1997) Cart Numbers (1997) Re1000001: Setting up shop (1997) Webcat & SIMS (1998) my price won't move (1997) Shared databases (2003) FEW QUESTIONS (1997) Re:PCS Customer submissions ? (1997) OFF-TOPIC: Check www.godaddy.com for me ... (2003) WebCat2 - [format thousands] (1997)