###############################################################################
#                                                                             #
#   Copyright 2005 University of Cambridge Computer Laboratory.               #
#                                                                             #
#   This file is part of Nprobe.                                              #
#                                                                             #
#   Nprobe is free software; you can redistribute it and/or modify            #
#   it under the terms of the GNU General Public License as published by      #
#   the Free Software Foundation; either version 2 of the License, or         #
#   (at your option) any later version.                                       #
#                                                                             #
#   Nprobe is distributed in the hope that it will be useful,                 #
#   but WITHOUT ANY WARRANTY; without even the implied warranty of            #
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             #
#   GNU General Public License for more details.                              #
#                                                                             #
#   You should have received a copy of the GNU General Public License         #
#   along with Nprobe; if not, write to the Free Software                     #
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA #
#                                                                             #
###############################################################################


###############################################################################
##
## CONTENT_TYPES
##
## LIST OF MIME TYPES FOR HTTP CONTENT-TYPE HEADER FIELD
##  - PROCESSED TO GENERATE TYPE PARSING CODE AND NUMERIC TYPE CODES
##
###############################################################################

## FIELDS ARE:
##	1 Mime type
##	2 'Hard-wired' code for type (optional)
##	3 '*' (optional) denoting that the type is a dummy type used for
##	    nprobe housekeeping and need not be included in the parsing code
##
## 	If field 2 is absent the build system will assign a code type - as this
##        may vary as types are added, assigned codes should be given to allow 
##        legacy logs to be interpreted correctly
##
## Assigned codes may be saved in a new content_types (this) file by using 
##  the '-s' option to gen_content_t.py, or by 'make content_t_save'
##

###############################################################################

##
## *** THE FOLLOWING MINIMUM 'DUMMY' OR REAL TYPES MUST BE PRESENT ***
##

unknown 			0 	* # type unknown
text/html			1
non_object   			64000	* # unsuccessful returns
text_html_assumed   		64001	* # assumed 'type' - see do_status_code()
dummy        			64997	* # 'type' for dummy objects 
post_err     			64998	* # container for receipts post error 
unsynch      			64999	* # container for unsynchronised receipts
other        			65000	* #unrecognised type

###############################################################################

##
## NUMBERED CL LEGACY CODED TYPES
##

text/plain				2
text/css				3
text/xml				4
text/x-unknown-content-type		100

image/gif				2100
image/jpeg				2200
image/pjpeg				2210
image/png				2300
image/x-xbitmap				2500
image/x-icon				2600
image/bmp				2400


application/x-javascript		20010
application/java			20020
application/java-vm			20025
application/java-archive		20030
application/x-java-serialized-object	20040
application/octet-stream		20200
application/x-msdownload		20100
application/msword			20110
application/x-chat			21000
application/pdf				20300
application/zip				20400
application/x-zip-compressed		20410
application/x-pointplus			20700
application/x-director			20800
application/exe				21200
application/octet-string		21300
application/binary			21400
application/x-httpd-cgi			20900
application/x-ns-proxy-autoconfig	20500
application/x-shockwave-flash		20600
application/mac-binhex40		20000
application/vnd.rn-realplayer		10100
application/x-www-form-urlencoded	21500
application/x-rar-compressed		21600

audio/x-pn-realaudio			9000
audio/x-midi				9110
audio/midi				9100
audio/mpeg				9200
audio/x-mpegurl				40000
audio/basic				9300
audio/wav				9350
audio/vnd.rn-realaudio			9400
audio/x-asap				9250
audio/x-wav				10000

rtsp					8000

multipart/x-byteranges			30000
multipart/x-mixed-replace		30100

www/unknown				200

video/quicktime				10200
video/mpeg				10210
video/avi				10220
video/x-msvideo				10310
video/x-ms-asf				10300

cnn/user-cookie				41000

binary					42000 

###############################################################################

##
## POST LEGACY UNCODED TYPES
##

application/x-netcdf
text/javascript
application/smil 

###############################################################################

##
## ADDITIONAL TYPES FOUND IN HINXTON TRACES
##

application/octet
multipart/form-data
chemical/x-pdb
httpd/inix-directory
application/vnd.xacp
httpd/yahoo-send-as-is
application/x-rasmol
multipart/byteranges
biosequence/fasts
image/jpg
audio/x-scpls
text/rtf
chemical/x-relibase
application/x-gzip
image/x-ms-bmp
application/vnd.ms-excel
text/script
text/x-component
