HTTP and HTML: Request and Response - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

HTTP and HTML: Request and Response

Description:

HTTP and HTML: Request and Response. HTTP the most important ... Text and tags: tags only OR tags paired to enclose some text; HTML: plain text. Whitespace ... – PowerPoint PPT presentation

Number of Views:90
Avg rating:3.0/5.0
Slides: 18
Provided by: guji
Category:

less

Transcript and Presenter's Notes

Title: HTTP and HTML: Request and Response


1
HTTP and HTML Request and Response
2
  • HTTP the most important protocol of the Internet
  • Ideas but not Technology is the key part of the
    story
  • Created tremendous network effect n2 value,
    which makes the widespread (HTTP) dominate

3
Why a new protocol?
  • Existing protocols
  • HTTP must provide
  • File transfer
  • Request an index search
  • Automatic format negotiation
  • Refer the client to another server

4
Http Client / Browser
  • Has URL Request to server
  • Gets back data Response HTML, JPEG
  • Displays that data
  • Processes Clicks, etc. to make further requests

5
URL Request to the Server
  • http//www.stanford.edu/class/cs193i/index.html
  • http
  • Protocol ask scheme
  • www.standford.edu
  • Host Server to contact
  • /class/cs193i/index.html
  • Path identifies document on that host

6
URL, URN URI
  • All of the three identify documents, but
  • URL depends on the name of the server and
    other details of where the document is stored
  • URN only depends on the server?
  • URI URLs URNs?

7
  • HTTP Server
  • Document Root on Server
  • Client Request
  • Request Example?
  • Server Response

8
HTML Most often Response to HTTP
  • Hypertext Markup Language
  • Portable Content
  • HTML structure the Browser appearance
  • Text and tags tags only OR tags paired to
    enclose some text
  • HTML plain text
  • Whitespace

9
What Defines Appearance?
  • The setting of the browser
  • Example for pours into http//cslibrary.dtanfor
    d.edu/104/
  • An example on different tags.

10
Uniform Resource Locator URL
  • Specify the location
  • Anchor Tag ltagt
  • e.g. lta href http//www.duke.edugtdukeltagt
  • Encoding?
  • Page relative URL lookup
  • Two examples
  • Root Relative

11
Uniform Resource Locator URL
  • Image Tag
  • ltimg src URL of imagegt
  • Image Files
  • JPEG .jpg or .jpeg
  • GIF .gif
  • PNG Portable Network Graphics
  • Image Style
  • Name Tags lta name spotgt

12
HTTP Request/Response
  • stateless request and response
  • HTTP Request
  • Get Request?
  • Complex URLs

13
HTTP Request
  • Example http//foo.com/a/b/bar.html?hello.thereb
    inky
  • http ? scheme or protocol
  • foo.com ? host
  • /a/b/bar.html ? path
  • ?hello.there ? query
  • binky ? fragment

14
HTTP Request
  • Basic GET?
  • The Empty Request URLs without path/query
    section
  • Other requests POST, PUT, DELETE

15
HTTP Response
  • A header section ? a blank line ? the document
    data
  • Content-Length Size
  • Content-Type mime-type
  • HTTP 1.0 Example
  • Status Codes
  • Not-Found Example

16
HTTP Response
  • MIME (Multipurpose Internet Mail Extensions)
    Types
  • content-type/sub-type aux-info

17
  • Empty Request
  • Server URL Mapping
  • username
  • Directories
  • Client Side Unawareness
  • The Trailing Slash and 300 redirects
Write a Comment
User Comments (0)
About PowerShow.com