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:
Shop from PDF (2004)
RE: Formulas.db + Users.db (1997)
google (2003)
Too many webcat comments. [WAS- Large founditems loops] (2000)
Intermitent problem using [referrer] (1997)
CSS in HTML emails? (2003)
Emailer choke (1997)
WebTen? (1997)
Thanks Grant (1997)
suggestions for a good text editor on windows? (2005)
Bug? (1997)
MultiGroupChecker (2000)
Sorting Dates in a search (2000)
[WebDNA] lighttpd.conf for php and webdna? (2013)
Can't add a field (1998)
[shell} (2005)
Help needed! (1998)
Why does lineitems loop in sendmail = crash ? (2000)
Bug or syntax error on my part? (1997)
Searching multiple Databases (1997)