Slide 1

Slide 1 text

HyperText Transport Protocol Kornel Lesiński London Web Standards 2011

Slide 2

Slide 2 text

“HTM L5” AKA N.E.W .T. HTML5 Video CSS3 Server-sent events XHTML5 Web Sockets Live Streaming NoSQL DB the actual XMLHttpRequest Web APIs

Slide 3

Slide 3 text

http://

Slide 4

Slide 4 text

Server Client Proxy (sometimes)

Slide 5

Slide 5 text

HTTP/1.1'200'OK Date:'Tue,'18'Jan'2011'20:00:00'GMT' Server:'Apache' ContentAType:'text/html;'charset=utfA8 LastAModified:'Wed,'08'Sep'2010'06:34:43'GMT' ContentALength:'5447' ContentALanguage:'enAGBAxAHixie' Connection:'close' ' ''Web'Hypertext'Application'Technology' Working'Group '' '' ' ' '''Welcome'to'the'WHATWG'community ''Maintaining'and'evolving' HTML'since'2004

''

Want'to'get'involved' and'help'out?'See'a'list'of'things'for' which'we'need'volunteers'and'jump'in!

''FAQ'Get' answers'to'your'questions

''

Slide 6

Slide 6 text

HTTP/1.1'200'OK Date:'Tue,'18'Jan'2011'20:00:00'GMT' Server:'Apache' ContentAType:'text/html;'charset=utfA8 LastAModified:'Wed,'08'Sep'2010'06:34:43'GMT' ContentALength:'5447' ContentALanguage:'enAGBAxAHixie' Connection:'close' ' ''Web'Hypertext'Application'Technology' Working'Group '' '' ' ' '''Welcome'to'the'WHATWG'community ''Maintaining'and'evolving' HTML'since'2004

''

Want'to'get'involved' and'help'out?'See'a'list'of'things'for' which'we'need'volunteers'and'jump'in!

''FAQ'Get' answers'to'your'questions

''

Slide 7

Slide 7 text

Slide 8

Slide 8 text

HTTP/1.1'200'OK Date:'Tue,'18'Jan'2011'20:00:00'GMT' Server:'Apache' ContentAType:'text/html;'charset=utfA8 LastAModified:'Wed,'08'Sep'2010'06:34:43'GMT' ContentALength:'5447' ContentALanguage:'enAGBAxAHixie' Connection:'close' ' '' ''Web'Hypertext'Application'Technology' Working'Group '' '' ' ' '''Welcome'to'the'WHATWG'community ''Maintaining'and'evolving' HTML'since'2004

''

Want'to'get'involved' and'help'out?'See'a'list'of'things'for' which'we'need'volunteers'and'jump'in!

''FAQ'Get'

Slide 9

Slide 9 text

HTTP/1.1'200'OK Date:'Tue,'18'Jan'2011'20:00:00'GMT' Server:'Apache' ContentAType:'text/html;'charset=utfA8 LastAModified:'Wed,'08'Sep'2010'06:34:43'GMT' ContentALength:'5447' ContentALanguage:'enAGBAxAHixie' Connection:'close' ' '' ''Web'Hypertext'Application'Technology' Working'Group '' '' ' ' '''Welcome'to'the'WHATWG'community ''Maintaining'and'evolving' HTML'since'2004

''

Want'to'get'involved' and'help'out?'See'a'list'of'things'for' which'we'need'volunteers'and'jump'in!

''FAQ'Get'

Slide 10

Slide 10 text

not even close to equivalent

Slide 11

Slide 11 text

Force download of a file Open Save Cancel

Slide 12

Slide 12 text

Content&Disposition:,attachment

Slide 13

Slide 13 text

Cache&Control:,public,,private, ,must&revalidate,,no&validate,,pre& cache=0,,post&check=0,,max&age=&1 Pragma:,cache Transfer&Description:,download Content&Disposition:,attachment; ,filename*=UTF&8''name Content&Type:,downloadpls/kthxbye X&Pragma:,no&cache Expires:,0 Content&Transfer&Encoding:,binary Content&Disposition:,attachment

Slide 14

Slide 14 text

/riaa%20bait/Mot%C3%B6rhead.mp3

Slide 15

Slide 15 text

Content&Type: image/png flickr.com/photos/ veggietothemax/ 201197734

Slide 16

Slide 16 text

.htaccess AddType,video/webm,.webm AddType,video/ogg,.ogv /etc/mime.types

Slide 17

Slide 17 text

HTML = text/html XHTML = application/xhtml+xml

Slide 18

Slide 18 text

http://lists.w3.org/Archives/Public/www-html/2000Sep/0024.html The HTML WG has discussed this issue: the intention was to allow old (HTML-only) browsers to accept XHTML 1.0 documents by following the guidelines, and serving them as text/html. Therefore, documents served as text/html should be treated as HTML and not as XHTML. There should be no sniffing of text/html documents to see if they are really XHTML. Note that there are some semantic differences between HTML documents and XHTML documents: there are specific CSS rules that only apply to HTML (and not XHTML), and the DOM has different effects (for instance, the element names are returned in uppercase for HTML, and lower case for XHTML). Best wishes, Steven Pemberton Chair, W3C HTML WG ” “

Slide 19

Slide 19 text

Firefox Strict MIME type Safari Strict MIME type Opera Strict MIME type Internet Explorer Strict MIME type W3C Validator Sniffs DOCTYPE http://www.w3.org/Bugs/Public/show_bug.cgi?id=1500

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

I reckoned HTML5 was at least partly Hixie’s revenge against XHTML served as text/html.

Slide 25

Slide 25 text

RFC 2616

Slide 26

Slide 26 text

2011 * not to scale HTTP

Slide 27

Slide 27 text

Connection:,close

Slide 28

Slide 28 text

http://pornel.net/1 http://pornel.net/2 HTTP/1.0'200'OK ContentAType:'text/html What'color'is'it? HTTP/1.0'200'OK ContentAType:'application/xhtml+xml What'color'is'it? What'color'is'it? What'color'is'it?