Old Proxomitron Forums
November 27, 2014, 06:51:13 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: No activity here! This forum is read-only. Go to http://prxbx.com/forums/index.php.
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: HTTP Header: Content-Type 3 in 1  (Read 2520 times)
Jor

Sr. Member
****
Posts: 421

10401286 jor otf jor_otf
View Profile WWW Email
« Reply #15 on: June 07, 2002, 05:33:22 PM »

Added some line-breaks Wink

 
Logged

 
altosax

Sr. Member
****
Posts: 328


View Profile WWW Email
« Reply #16 on: June 08, 2002, 06:35:58 PM »

hi sidki, you wrote:

--------------
I didn't check, whether it's possible in the mime fix list,
but text/plain$FILTER(true) would IMO be the best solution.
Then you can control in every filter, if it should be triggered by $TYPE(oth) or not.
--------------

i don't know at this moment if nested proxomitron commands could work, but do you think this could do the trick in mime fix list?

txt $SET(0=text/plain$FILTER(true))

i haven't tested it because this is not my pc and i'm not using proxo now, please could test this yourself and let me know?

thanks,
altosax.


 
Logged

 
sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« Reply #17 on: June 08, 2002, 07:03:55 PM »

That's what i had in mind as well.
I'll check that, but it will take some time
because , to be sure, i have to disfigure the mime.ini of the webserver.

regards, sidki

 
Logged

 
sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« Reply #18 on: June 08, 2002, 08:35:18 PM »

Hi altosax,

Here is what i found:

txt $SET(0=text/plain$FILTER(true)) won't do it,
since it fetches only the first, but not the $FILTER part.

However, something else does work:
$SET(0=text/plain; dummyvar) or
$SET(0=text/html; dummyvar)

The mime type is still correctly identified,
and you can test for the extra string later with:
$IHDR(Content-Type:*; dummyvar)

I found this trick once at Y!G.
It's probably more difficult than $FILTER,
and i didn't go deeper into it, but better than nothing.

edit: and the text/plain$FILTER(true) idea was from a filter in JD's config.

regards, sidki


Edited by - sidki3003 on 08 Jun 2002  22:34:53
Logged

 
altosax

Sr. Member
****
Posts: 328


View Profile WWW Email
« Reply #19 on: June 09, 2002, 11:16:58 AM »

hi sidki,
thanks for your time.

i'll leave
txt $SET(0=text/html)
in my mime fix list, because i prefer to filter incoming txt files.

ps. the idea of text/plain$FILTER(true) was in zxlist long time before jd filter set became public (i also had it in my filter set but i've removed it when i've added that line in mime fix list). i write this just to give credit to paul, but i know jd filter set and can say it is really a good one.

regards,
altosax.

 
Logged

 
sidki3003

Sr. Member
****
Posts: 476


View Profile WWW Email
« Reply #20 on: July 25, 2002, 07:12:30 PM »

Updated to take care of URLs like
http://www.somesite.com/something.htm?something.jpg

First message of the thread was changed accordingly.

sidki

 
Logged

 
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!