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 = 114388
interpreted = N
texte = 2005--Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiSpeaking of http headers, my Varnish cache sends all kinds of useful =information via X-headers but I am unable to gain access to them. =[listmimeheaders] seems to be filtered in some way. None of the =X-headers are returned.Mike> On Sep 11, 2018, at 9: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 something 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 on 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 or 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 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=_7D6C379F-2257-45E8-A68C-9D574478DEC7Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiSpeaking of http =headers, my Varnish cache sends all kinds of useful information via =X-headers but I am unable to gain access to them. = [listmimeheaders] seems to be filtered in some way. None of =the X-headers are returned.
Mike
Hi all,
WebDNA 8.6.1 Server
Apache =2
CentOS7
Should I be able to change the 'Content-Type' =header on a template using something like:
[setmimeheader =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 header on the template
<FilesMatch ="my-template.tpl">
AddType application/json =tpl
=
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 something to =allow this?
Thanks
- Tom
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
talk@webdna.usTo unsubscribe, E-mail to:
talk-leave@webdna.usarchives:
http://www.webdna.us/page.dna?numero=3D55Bug Reporting:
support@webdna.us
=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7--.
Associated Messages, from the most recent to the oldest:
2005--Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiSpeaking of http headers, my Varnish cache sends all kinds of useful =information via X-headers but I am unable to gain access to them. =[listmimeheaders] seems to be filtered in some way. None of the =X-headers are returned.Mike> On Sep 11, 2018, at 9: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 something 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 on 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 or 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 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=_7D6C379F-2257-45E8-A68C-9D574478DEC7Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiSpeaking of http =headers, my Varnish cache sends all kinds of useful information via =X-headers but I am unable to gain access to them. =
[listmimeheaders] seems to be filtered in some way. None of =the X-headers are returned.
Mike
Hi all,
WebDNA 8.6.1 Server
Apache =2
CentOS7
Should I be able to change the 'Content-Type' =header on a template using something like:
[setmimeheader =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 header on the template
<FilesMatch ="my-template.tpl">
AddType application/json =tpl
=
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 something to =allow this?
Thanks
- Tom
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
talk@webdna.usTo unsubscribe, E-mail to:
talk-leave@webdna.usarchives:
http://www.webdna.us/page.dna?numero=3D55Bug Reporting:
support@webdna.us
=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail=_7D6C379F-2257-45E8-A68C-9D574478DEC7--.
Michael Davis
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:
300 ticks (2003)
PCS Frames (1997)
2.0 Info (1997)
Add a field to the error log? (1997)
Alternating BGColors in Table Rows (1998)
TRAINING videos - Prove IT. (1998)
Tax and ShipCost Problem (1997)
The USArea® Network web site ... (1997)
Include a big block of text (1997)
WebCatalog 2.1b4/Mac available (1997)
Client-side Image Maps and WebCat? (1998)
OT: Poll Results (2002)
chicken / egg::purchase / setheader (2002)
Problems appending to database (1997)
emailer w/F2 (1997)
Nesting format tags (1997)
SSL and reg web* (1997)
Search (1997)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Problems with date math (1997)