MSSE SENG 5199

Course Materials for the MSSE Web Application Development Course

autoscale: true theme: Next, 3

HTTP Basics


HTTP


HTTP Basics


HTTP 1.1 Characteristics


HTTP Request Format


Http Request Example

GET /v1/pdp/tcin/31173465 HTTP/1.1 Host: someserver.com Connection: keep-alive Pragma: no-cache Cache-Control: no-cache Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Encoding: gzip, deflate, sdch, br Accept-Language: en-US,en;q=0.8 Cookie: adpakalb=p_csp1usw2;


Request Methods


HTTP Response Format


Example Response

HTTP/1.1 200 OK Accept-Ranges: bytes Access-Control-Allow-Headers: X-Auth-Token, Content-Type, X-Requested-With Access-Control-Allow-Methods: GET Access-Control-Allow-Origin: * Cache-Control: max-age=0, no-cache, no-store Content-Encoding: gzip Vary: Accept-Encoding X-Response-Time: 6.00000 Content-Length: 6881 Date: Sun, 10 Feb 2017 19:45:11 GMT Connection: keep-alive Content-Type: application/json

…Insert Response Body…


Example Response Statuses


Response Headers


Response Body


HTML


HTML Content


CGI


CGI Programs


CGI Issues


Web Applications


Web Application Abstractions


Requests and Responses


Sessions


Scoping


Cookies


Client-side Behavior


JavaScript


JavaScript Supports


The Future: Http 2


Multiplexing


Single connection


Server Push


Header Compression


HTTP 2 Availability


Summary