Web basics HTTP –http://www.ietf.org/rfc/rfc2616.txt –http://www2002.org/CDROM/refereed/444/ URI/L/Ns –http://www.ietf.org/rfc/rfc2396.txt HTML –http://www.w3.org/TR/html401/

Slides:



Advertisements
Similar presentations
Hypertext Transfer PROTOCOL ----HTTP Sen Wang CSE5232 Network Programming.
Advertisements

HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
HTTP – HyperText Transfer Protocol
1 HTTP – HyperText Transfer Protocol Part 1. 2 Common Protocols In order for two remote machines to “ understand ” each other they should –‘‘ speak the.
CS320 Web and Internet Programming Generating HTTP Responses
HTTP Hypertext Transfer Protocol. HTTP messages HTTP is the language that web clients and web servers use to talk to each other –HTTP is largely “under.
How the web works: HTTP and CGI explained
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 23 – Internet Applications Internet Directory.
Web, HTTP and Web Caching
Definitions, Definitions, Definitions Lead to Understanding.
Hypertext Transfer Protocol Information Systems 337 Prof. Harry Plantinga.
2/9/2004 Web and HTTP February 9, /9/2004 Assignments Due – Reading and Warmup Work on Message of the Day.
Hypertext Transport Protocol CS Dick Steflik.
 What is it ? What is it ?  URI,URN,URL URI,URN,URL  HTTP – methods HTTP – methods  HTTP Request Packets HTTP Request Packets  HTTP Request Headers.
Rensselaer Polytechnic Institute CSC-432 – Operating Systems David Goldschmidt, Ph.D.
Web technologies and programming cse hypermedia and multimedia technology Fanis Tsandilas April 3, 2007.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
HTTP Protocol Specification
FTP (File Transfer Protocol) & Telnet
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
HyperText Transfer Protocol (HTTP).  HTTP is the protocol that supports communication between web browsers and web servers.  A “Web Server” is a HTTP.
1 Lecture #7-8 HTTP – HyperText Transfer Protocol HAIT Summer 2005 Shimrit Tzur-David.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
Application Layer 2 Figures from Kurose and Ross
Rensselaer Polytechnic Institute Shivkumar Kalvanaraman, Biplab Sikdar 1 The Web: the http protocol http: hypertext transfer protocol Web’s application.
Week 11: Application Layer1 Web and HTTP First some jargon r Web page consists of objects r Object can be HTML file, JPEG image, Java applet, audio file,…
Maryam Elahi University of Calgary – CPSC 441.  HTTP stands for Hypertext Transfer Protocol.  Used to deliver virtually all files and other data (collectively.
Sistem Jaringan dan Komunikasi Data #9. DNS The Internet Directory Service  the Domain Name Service (DNS) provides mapping between host name & IP address.
WWW, HTTP, GET, POST, Cookies Svetlin Nakov Telerik Corporation
The HyperText Transfer Protocol. History HTTP has been in use since 1990 (HTTP/0.9) HTTP/1.0 was defined in RFC 1945 (May 1996) and included metainformation.
Web HTTP Hypertext Transfer Protocol. Web Terminology ◘Message: The basic unit of HTTP communication, consisting of structured sequence of octets matching.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
HTTP Hypertext Transfer Protocol
Web Client-Server Server Client Hypertext link TCP port 80.
©Yaron Kanza HTTP Written by Dr. Yaron Kanza, Edited with permission from author by Liron Blecher.
HyperText Transfer Protocol (HTTP) RICHI GUPTA CISC 856: TCP/IP and Upper Layer Protocols Fall 2007 Thanks to Dr. Amer, UDEL for some of the slides used.
HTTP1 Hypertext Transfer Protocol (HTTP) After this lecture, you should be able to:  Know how Web Browsers and Web Servers communicate via HTTP Protocol.
CIS679: Lecture 13 r Review of Last Lecture r More on HTTP.
1-1 HTTP request message GET /somedir/page.html HTTP/1.1 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:fr request.
Web Technologies Interactive Responsiveness Function Hypertext Web E-Publishing Simple Response Web Fill-in Forms Object Web « Full-Blown » Client/Server.
HTTP Protocol Design1 HTTP - timeline r Mar 1990 CERN labs document proposing Web r Jan 1992 HTTP/0.9 specification r Dec 1992 Proposal to add MIME to.
Appendix E: Overview of HTTP ©SoftMoore ConsultingSlide 1.
Operating Systems Lesson 12. HTTP vs HTML HTML: hypertext markup language ◦ Definitions of tags that are added to Web documents to control their appearance.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
The Basics of HTTP Jason Dean
Web Server Design Week 7 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 2/24/10.
Web Technologies Lecture 1 The Internet and HTTP.
HTTP Here, we examine the hypertext transfer protocol (http) – originally introduced around 1990 but not standardized until 1997 (version 1.0) – protocol.
Web Services. 2 Internet Collection of physically interconnected computers. Messages decomposed into packets. Packets transmitted from source to destination.
EE 122: Lecture 21 (HyperText Transfer Protocol - HTTP) Ion Stoica Nov 20, 2001 (*)
RESTful Web Services What is RESTful?
5 th ed: Chapter 17 4 th ed: Chapter 21
Overview of Servlets and JSP
Computer Networks with Internet Technology William Stallings Chapter 04 Modern Applications 4.1 Web Access - HTTP.
World Wide Web r Most Web pages consist of: m base HTML page, and m several referenced objects addressed by a URL r URL has two components: host name and.
HyperText Transfer Protocol (HTTP) Deepti Kulkarni CISC 856: TCP/IP and Upper Layer Protocols Fall 2008 Acknowledgements Professor Amer Richi Gupta.
Week 11: Application Layer 1 Web and HTTP r Web page consists of objects r Object can be HTML file, JPEG image, Java applet, audio file,… r Web page consists.
Web Protocols: HTTP COMP6017 Topics on Web Services Dr Nicholas Gibbins –
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
© Janice Regan, CMPT 128, Jan 2007 CMPT 371 Data Communications and Networking HTTP 0.
Hypertext Transfer Protocol (HTTP) COMP6218 Web Architecture Dr Nicholas Gibbins –
HTTP – An overview.
The Hypertext Transfer Protocol
Hypertext Transfer Protocol
Hypertext Transport Protocol
HTTP Protocol.
WEB API.
HTTP Hypertext Transfer Protocol
HTTP Hypertext Transfer Protocol
Presentation transcript:

Web basics HTTP – – URI/L/Ns – HTML –

HTTP operation Basic (top) vs. with Intermediaries User Agent Request Response Origin Server User Agent Origin Server Request chain Response chain Intermediaries: Proxies, gateways, tunnels

HTTP Terminology User Agent (UA): program acting on behalf of user. Resource: data object or service identified by a URI. Origin server (OS): server originating a resource Connection: transport session initiated by UA (but not always direct to OS). Typically TCP or SSL.

HTTP Terminology Message: formatted sequence of bytes: –Request: from client to server –Response: from server to client Message = startline + headers + body

Request and response messages GET /index.html HTTP/1.1 Host: User-Agent: Mozilla HTTP/ OK Content-Length: 45 Content-Language: en-us Content-Type: text/html Hello world

Requests GET, HEAD, POST PUT, DELETE OPTIONS, TRACE, CONNECT

Common request headers Host (required), User-Agent Referer Authorization If-Modified-Since, Cache-Control Accept[-Language/-Charset/-Encoding]

Common response codes 200 OK 301 Moved permanently, 307 Moved tmp 400 Bad request 401 Unauthorized, 403 Forbidden 404 Not found 500 Internal Server Error

Common response headers Content-Type, Content-Length, Content- Language Date, Last-Modified, Expires Location [for 3xx responses] Server

Response generation Theory (top) vs. practice ResourceVariantInstanceEntityMessage Selection (negotiation, UA optimization) Content encoding (gzip) Instance manipulations (range, delta) Transfer encoding (chunking, encryption) ResourceVariant/InstanceMessage Selection (UA optimization) Understanding the full model is necessary for a good understanding of caching, but we are going to ignore caching

Cookies Not part of official HTTP spec, but see: – – Adding state to “stateless” protocol OS adds Set-Cookie header to response: –Set-Cookie: sid=113a8fbc;version=1;path=/ UA adds Cookie header to future requests: –Cookie: sid=113a8fbc;$version=1;$path=/

URI/L/N Universal Resource… –Name: a persistent identifier (Under development) –Locator: (perhaps transient) locator information Typically: address plus access method –Identifier: either a URN or URL RFC2396 provides syntactic rules that all URIs must obey

HTTP URLs –“Fragments” are not strictly part of URLs –Relative URIs Canonicalization –Aggressively avoid false distinctions –But always keep a working URL

HTML Do a bit of review on the way frames and Javascript work

Problems for Archiving Links obscured by increasing use of Flash, Javascript, DHTML, PDF, Word, … Soft-404’s, 30x’s (Big pain!!) –Great example of non-cooperation Browser-specific content Servers lie about content –E.g., incorrect or missing Content-Type

Problems for Archiving Aliasing –Material is copied –Host has multiple names ( and foo.com typically the same) –Resource has multiple names (e.g., case- insensitivity)

Problems for archiving And this ignores spamming!