AW: Setting a MIME type on $r->custom_response

2019-09-24 Thread Andreas Mock
Hi Andrew, have a look at $r->err_headers_out->add('Content-Type' => 'bla bla'); Best regards Andreas Von: Andrew Green Gesendet: Dienstag, 24. September 2019 18:39 An: modperl@perl.apache.org Betreff: Setting a MIME type on $r->custom_respons

Setting a MIME type on $r->custom_response

2019-09-24 Thread Andrew Green
Hi all, Is it possible to get $r->custom_response to respond using a MIME type other than text/html? I’m writing a mod_perl application that’s intended to work with someone else’s React front end. My code therefore just sends JSON. For an authentication failure, I can use custom_response

proxy & mime type issues

2008-01-27 Thread Jon
serves all files as 'text/html' as oppose to their proper mime type (css, jpg, js, etc...). To ensure that the proxy is at fault I have attempted to retrieve files of various types using wget through the proxy, and directly to the application servers. When going through the proxy all

Incorrect/inconsistant mime type

2005-10-18 Thread Peter Rosenthal
I am having a strange problem with mod_perl/Apache::ASP Randomly the mime type sent down to the browser is incorrect. This might be when the child processes its first request. The content type is set to "text/html" and the header sent to the browser is: Content-Type: text/plain; cha

RE: Mime Type

2005-09-13 Thread Adam Prime x443
If you use the Content Disposition header you don't have to change the mime-type associated with that extention. adam -Original Message- From: Paul Harrison [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:40 PM To: 'Tom Schindl' Cc: modperl@perl.apache.

Re: Mime Type

2005-09-13 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Harrison wrote: > So what's the best mime-type then to use ? > > > Paul > http://philringnalda.com/blog/2001/12/force_the_browser_to_save_a_file.php - 8< $r->content_type

RE: Mime Type

2005-09-13 Thread Paul Harrison
So what's the best mime-type then to use ? Paul -Original Message- From: Tom Schindl [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 11:32 AM To: Paul Harrison Cc: modperl@perl.apache.org Subject: Re: Mime Type -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As already

Re: Mime Type

2005-09-13 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As already said that's nothing specific to mod_perl but when using mod_perl you set the mime-type yourself using: $r->content_type('text/plain'); If you want the user to have get a popup you have to use a content-type the browser

RE: Mime Type

2005-09-13 Thread Adam Prime x443
EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 11:36 AM To: Paul Harrison Cc: modperl@perl.apache.org Subject: Re: Mime Type Hi I'm not quite sure how this relates to mod_perl... On Tue 13-Sep-2005 at 10:26:05AM -0500, Paul Harrison wrote: > Is there a way I can change the mine typ

Re: Mime Type

2005-09-13 Thread Chris Croome
Hi I'm not quite sure how this relates to mod_perl... On Tue 13-Sep-2005 at 10:26:05AM -0500, Paul Harrison wrote: > Is there a way I can change the mine type in apache Yes: AddType application/octet-stream .mp3 http://httpd.apache.org/docs/2.0/mod/mod_mime.html#addtype I'd suggest just

Mime Type

2005-09-13 Thread Paul Harrison
Is there a way I can change the mine type in apache so when a user clicks on a mp3 link it would pop_up the save window instead of playing it ? Maybe trick the browser into thinking the mp3 file is a zip file so it will pop_up a save as window, so the user can save it to their desktop.