Forum Moderators: phranque

Message Too Old, No Replies

AddType and addhandler

Whats diference in AddType and addhandler

         

vwsequeira

10:04 am on Jul 16, 2006 (gmt 0)

10+ Year Member



Hello Jim,

a)addhandler cgi-script .cgi

b)AddType application/x-httpd-cgi .cgi

HOw Do a) and b)works? are they one and the same?

Vincent

jdMorgan

5:22 pm on Jul 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AddHandler tells the server how to handle a filetype.
AddType tells the server how to tell the client to handle the content of a filetype -- by sending the approprite MIME-type header to the client along with the response to the client's HTTP request.

Various hacks and band-aids confuse this issue, but the above is how it is intended to work.

Jim