Author Topic: HTTP Header: Content-Type 3 in 1  (Read 3775 times)

Jor

  • Sr. Member
  • ****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
HTTP Header: Content-Type 3 in 1
« Reply #15 on: June 07, 2002, 05:33:22 PM »
Added some line-breaks ;)

 
 

altosax

  • Sr. Member
  • ****
  • Posts: 328
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
HTTP Header: Content-Type 3 in 1
« 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.


 
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
HTTP Header: Content-Type 3 in 1
« 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

 
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
HTTP Header: Content-Type 3 in 1
« 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
 

altosax

  • Sr. Member
  • ****
  • Posts: 328
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
HTTP Header: Content-Type 3 in 1
« 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.

 
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
HTTP Header: Content-Type 3 in 1
« 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