"Content-Type: 5a Filter sel. Text Types" Issue
|
Jun. 30, 2011, 03:45 PM
Post: #1
|
|||
|
|||
"Content-Type: 5a Filter sel. Text Types" Issue
If you visit http://club.china.com/data/thread/1011/2...0/5_1.html using Opera 11.5, you will see a download dialog.
The problem comes from a request to http://r.club.china.com/SoundOfSilence?f...=271117005 from that page. Proxomitron bypassed: Code: +++RESP 17077+++ Proxomitron effective with sidki filter set: Code: RESP 17055 : Content-Type: Filter True: The added Content-Type: ; PrxMsg: Filter Text: No Content-Type caused the download dialog for Opera, but not for IE 8 and Firefox 5. It seems an older version of IE should have that problem in the past because sidki has below code: Code: ($TST(hOrigUA=*msie(^*opera)*)$SET(1=text/plain)|) But since Opera is the only browser (Safari and Chrome not tested ) who suffered that problem now, we can change it to: Code: ($TST(hOrigUA=*opera*)$SET(1=text/plain)|) The full modified filter: Code: [HTTP headers] |
|||
Jul. 01, 2011, 04:16 AM
Post: #2
|
|||
|
|||
RE: "Content-Type: 5a Filter sel. Text Types" Issue
Confirmed. Chrome appears to be OK. Safari not tested.
What is gained by removing the exception for msie? I still have computers that use IE7, IE6, and whatever is on my Win95 machine. Thanks |
|||
Jul. 01, 2011, 07:14 AM
Post: #3
|
|||
|
|||
RE: "Content-Type: 5a Filter sel. Text Types" Issue
I don't have computers that uses IE6/7. Could you give them a test?
Maybe we have to keep the exception for msie. |
|||
Feb. 17, 2012, 01:30 AM
Post: #4
|
|||
|
|||
RE: "Content-Type: 5a Filter sel. Text Types" Issue
I'm not even sure about the purpose of this filter, but it seems to be causing issues on this page. Clicking the media file for Feb 9 should produce a save/dialog box, but when 5a Filter sel. Text Types is checked it attempts to show it as text, at least in Firefox.
|
|||
Feb. 18, 2012, 12:35 AM
(This post was last modified: Feb. 18, 2012 03:10 AM by JJoe.)
Post: #5
|
|||
|
|||
RE: "Content-Type: 5a Filter sel. Text Types" Issue
(Feb. 17, 2012 01:30 AM)zoltan Wrote: I'm not even sure about the purpose of this filter, but it seems to be causing issues on this page. Clicking the media file for Feb 9 should produce a save/dialog box, but when 5a Filter sel. Text Types is checked it attempts to show it as text, at least in Firefox. By default, the Proxomitron does not filter all files. This filter forces filtering of some "text/plain" type files. The darkhorizonsradio server is sending a "Content-Type: text/plain" for m4a files. I think, it should send "Content-Type: audio/x-m4a". An Exceptions-U.ptxt entry like Code: www.darkhorizonsradio.com/podcasts/shows/Dark_Horizons_[0-9]+.m4a $SET(0=a_type_t.) may avoid the problem at darkhorizonsradio. This filter Code: [HTTP headers] should correct the Content-Type and solve your problem? If so, we could consider an addition to "MIME-List.ptxt". Regardless, the "Content-Type: 5a Filter sel. Text Types" filter is adding some info to the Content-Type header and this appears to trigger the behavior that you reported. Code: Content-Type: text/plain; PrxMsg: Filter Text. HTH |
|||
The following 1 user says Thank You to JJoe for this post: zoltan |
Feb. 18, 2012, 04:04 AM
Post: #6
|
|||
|
|||
RE: "Content-Type: 5a Filter sel. Text Types" Issue
Thanks. The Exceptions entry and the filter each solves the problem. For my purposes, it's not that big of a deal now that I know what it's doing and how to stop it with an Exception. Or is the filter preferable? I'm thinking this isn't very common, although I seem to remember jpegs being shown as text at times but never thought of it as being a proxomitron issue.
|
|||
Feb. 18, 2012, 05:01 AM
Post: #7
|
|||
|
|||
RE: "Content-Type: 5a Filter sel. Text Types" Issue
(Feb. 18, 2012 04:04 AM)zoltan Wrote: Or is the filter preferable? I'm not sure. Use the Exceptions entry. The test filter was to gain info. Correcting darkhorizonsradio's 'mistake', if it is a mistake, doesn't seem to have any bad consequences. I'll put a note in "MIME-List.ptxt" for later. Have fun |
|||
Feb. 18, 2012, 04:07 PM
Post: #8
|
|||
|
|||
RE: "Content-Type: 5a Filter sel. Text Types" Issue
(Jul. 01, 2011 04:16 AM)JJoe Wrote: I still have computers that use IE7, IE6, and whatever is on my Win95 machine.ns3? Mosaic? I've noticed rarely when using firefox "View Image" on a jpg, that the browser gives me a download dialog, instead of displaying the jpg. I assume this indicates incorrect mime type, but haven't looked at proxo log to see if really has been incorrect mime type. (irfanview checks for true filetype, and offers to rename filetype when mismatch, but this is for image files already on the hard drive) |
|||
« Next Oldest | Next Newest »
|