4938877dd9
The "normal" web is moving forward quickly reducing the interoperability of the Contiki web browser to nearly zero. The Mobile Web fits the capabilities of the Contiki web browser much better. Modern smartphones don't need the Mobile Web anymore but there are large areas in world with rather low end mobile phones and limited mobile bandwidth where the Mobile Web will be necessary for quite some time. From that perspective it is reasonable to increase the Contiki web browser's interoperability with the Mobie Web - namely WAP 2.0 aka XHTML MP. XHTML MP is delivered as MIME types 'application/vnd.wap.xhtml+xml' or 'application/xhtml+xml'. Therefore we (try to) parse the document if the MIME type contains the substring 'html' (which is true 'text/html' too).
33 lines
1.1 KiB
Text
33 lines
1.1 KiB
Text
http_http "http://"
|
|
http_200 "200 "
|
|
http_301 "301 "
|
|
http_302 "302 "
|
|
http_get "GET "
|
|
http_10 "HTTP/1.0"
|
|
http_11 "HTTP/1.1"
|
|
http_content_type "content-type: "
|
|
http_location "location: "
|
|
http_host "Host: "
|
|
http_crnl "\r\n"
|
|
http_index_html "/index.html"
|
|
http_404_html "/404.html"
|
|
http_referer "Referer:"
|
|
http_header_200 "HTTP/1.0 200 OK\r\nServer: Contiki/2.6 http://www.contiki-os.org/\r\nConnection: close\r\n"
|
|
http_header_404 "HTTP/1.0 404 Not found\r\nServer: Contiki/2.6 http://www.contiki-os.org/\r\nConnection: close\r\n"
|
|
http_content_type_plain "Content-type: text/plain\r\n\r\n"
|
|
http_content_type_html "Content-type: text/html\r\n\r\n"
|
|
http_content_type_css "Content-type: text/css\r\n\r\n"
|
|
http_content_type_text "Content-type: text/text\r\n\r\n"
|
|
http_content_type_png "Content-type: image/png\r\n\r\n"
|
|
http_content_type_gif "Content-type: image/gif\r\n\r\n"
|
|
http_content_type_jpg "Content-type: image/jpeg\r\n\r\n"
|
|
http_content_type_binary "Content-type: application/octet-stream\r\n\r\n"
|
|
http_html ".html"
|
|
http_htm ".htm"
|
|
http_css ".css"
|
|
http_png ".png"
|
|
http_gif ".gif"
|
|
http_jpg ".jpg"
|
|
http_text ".text"
|
|
http_txt ".txt"
|
|
|