Lecture # 1 By: Aftab Alam Department Of Computer Science University Of Peshawar Internet Programming.

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 By: Becky Fultz, Joe Flager, Katie Huston, Tom Packard, Allison Wilsey.
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
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.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Know how HTTP accesses data on the WWW Objectives.
Chapter 2 Application Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley, July.
Web, HTTP and Web Caching
HTTP Overview Vijayan Sugumaran School of Business Administration Oakland University.
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.
Client, Server, HTTP, IP Address, Domain Name. Client-Server Model Client Bob Yahoo Server yahoo.com/finance.html A text file named finance.html.
 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.
PL-IV- Group A HTTP Request & Response Header
FTP (File Transfer Protocol) & Telnet
HyperText Transfer Protocol (HTTP).  HTTP is the protocol that supports communication between web browsers and web servers.  A “Web Server” is a HTTP.
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.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
2: Application Layer1 CS 4244: Internet Software Development Dr. Eli Tilevich.
Rensselaer Polytechnic Institute Shivkumar Kalvanaraman, Biplab Sikdar 1 The Web: the http protocol http: hypertext transfer protocol Web’s application.
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.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
HTTP Hypertext Transfer Protocol
Web Client-Server Server Client Hypertext link TCP port 80.
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.
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.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Overview of Servlets and JSP
Computer Networks with Internet Technology William Stallings Chapter 04 Modern Applications 4.1 Web Access - HTTP.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
COMP2322 Lab 2 HTTP Steven Lee Jan. 29, HTTP Hypertext Transfer Protocol Web’s application layer protocol Client/server model – Client (browser):
HyperText Transfer Protocol (HTTP) Deepti Kulkarni CISC 856: TCP/IP and Upper Layer Protocols Fall 2008 Acknowledgements Professor Amer Richi Gupta.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
Hypertext Transfer Protocol
Tiny http client and server
Block 5: An application layer protocol: HTTP
How HTTP Works Made by Manish Kushwaha.
Section 6.3 Server-side Scripting
Content from Python Docs.
HTTP – An overview.
The Hypertext Transfer Protocol
CISC103 Web Development Basics: Web site:
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Hypertext Transfer Protocol
Hypertext Transport Protocol
Some bits on how it works
Introduction Web Environments
HTTP Protocol.
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CISC103 Web Development Basics: Web site:
HTTP Hypertext Transfer Protocol
Net431:advanced net services
HTTP Request Method URL Protocol Version GET /index.html HTTP/1.1
Hypertext Transfer Protocol
HyperText Transfer Protocol
EE 122: HyperText Transfer Protocol (HTTP)
Hypertext Transfer Protocol (HTTP)
William Stallings Data and Computer Communications
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Kevin Harville Source: Webmaster in a Nutshell, O'Rielly Books

HTTP Hypertext Transfer Protocol
Information Retrieval and Web Design
Presentation transcript:

Lecture # 1 By: Aftab Alam Department Of Computer Science University Of Peshawar Internet Programming

Hypertext Transfer Protocol - HTTP

Contents 1.Introduction to HTTP 2.Why is HTTP so popular ? 3.Different evolutions of HTTP HTTP 0.9, HTTP1.0 and HTTP HTTP Protocol Version HTTP 1.1 Client Request HTTP Client Request Line HTTP Client Request Header HTTP Client Request Body 4.2 HTTP 1.1 Server Response HTTP Server Response Line HTTP Server Response Header HTTP Server Response Body

Contents 1.INTRODUCTION TO HTTP 2.Why is HTTP so popular ? 3.Different evolutions of HTTP HTTP 0.9, HTTP1.0 and HTTP HTTP Protocol Version HTTP 1.1 Client Request HTTP Client Request Line HTTP Client Request Header HTTP Client Request Body 4.2 HTTP 1.1 Server Response HTTP Server Response Line HTTP Server Response Header HTTP Server Response Body

1.Introduction to HTTP HTTP stands for Hypertext Transfer Protocol. Used to transfer resources on the WWW. These resources could be HTML files Image files Query results etc

1.Introduction to HTTP (cont’d) A browser works as an HTTP client because it sends requests to an HTTP server which is called Web server. The Web Server then sends responses back to the client. The standard and default port for HTTP servers to listen on is 80.

1.Introduction to HTTP (cont’d) Three important things about HTTP. HTTP is connectionless. HTTP is media independent. (any data) HTTP is stateless.

1.Introduction to HTTP (cont’d)

Contents 1.Introduction to HTTP 2.WHY IS HTTP SO POPULAR ? 3.Different evolutions of HTTP HTTP 0.9, HTTP1.0 and HTTP HTTP Protocol Version HTTP 1.1 Client Request HTTP Client Request Line HTTP Client Request Header HTTP Client Request Body 4.2 HTTP 1.1 Server Response HTTP Server Response Line HTTP Server Response Header HTTP Server Response Body

2. Why HTTP is so popular? It is the data transfer protocol standard used for the web. HTTP is simple and fast.

Contents 1.Introduction to HTTP 2.Why is HTTP so popular ? 3.DIFFERENT EVOLUTIONS OF HTTP HTTP 0.9, HTTP1.0 and HTTP HTTP Protocol Version HTTP 1.1 Client Request HTTP Client Request Line HTTP Client Request Header HTTP Client Request Body 4.2 HTTP 1.1 Server Response HTTP Server Response Line HTTP Server Response Header HTTP Server Response Body

3.Different evolutions of HTTP. HTTP 0.9 HTTP 1.0 HTTP 1.1

3. Different evolutions of HTTP. (Cont’d) HTTP 0.9 defined in Basic features: –Request : O nly 1 method supported in the request message (GET). –Reply : Contains only HTML format. –Only HTML documents are permitted (no other formats) –Efficient and adapted when it was created but began quickly limited.

3. Different evolutions of HTTP. (Cont’d) HTTP 1.0 –Published in RFC –Improvements between these 2 versions Use the MIME type headers. Basic Authentication (no encryption). HTTP version number in the request message. Introduce metadata

3. Different evolutions of HTTP. (Cont’d) Problems with HTTP 0.9 and HTTP 1.0 –Congestion (traffic jam) and high delay during the communication. –Size of “get method” only a few thousand bit. –Not enough security (basic authentication).

3. Different evolutions of HTTP. (Cont’d) Solution HTTP 1.1 –Improve performance. –New methods : delete, put, options, trace and connect.

Contents 1.Introduction to HTTP 2.Why is HTTP so popular ? 3.Different evolutions of HTTP HTTP 0.9, HTTP1.0 and HTTP HTTP Protocol Version HTTP 1.1 Client Request HTTP Client Request Line HTTP Client Request Header HTTP Client Request Body 4.2 HTTP 1.1 Server Response HTTP Server Response Line HTTP Server Response Header HTTP Server Response Body

4. HTTP Protocol Version HTTP 1.1 Client Request 4.2. HTTP 1.1 Server Response

Contents 1.Introduction to HTTP 2.Why is HTTP so popular ? 3.Different evolutions of HTTP HTTP 0.9, HTTP1.0 and HTTP HTTP Protocol Version HTTP 1.1 Client Request HTTP Client Request Line HTTP Client Request Header HTTP Client Request Body 4.2 HTTP 1.1 Server Response HTTP Server Response Line HTTP Server Response Header HTTP Server Response Body

4. HTTP Protocol Version HTTP 1.1 Client Request The HTTP request that the browser sends to the server contains HTTP Client Request Line HTTP Client Request Header HTTP Client Request Body

4. HTTP Protocol Version HTTP 1.1 Client Request Example: GET/test.com/HTTP 1.1 Accept Language: en-us Connection: Keep-Alive Host: Referer: User-Agent: Mozilla ( Linux i586)

4. HTTP Protocol Version HTTP Client Request Line Request line consist of three pieces of information. i.HTTP command known as method oGET, POST, HEAD, PUT, DELETE, TRACE, OPTIONS, CONNECT ii.Path from the resources that the client is requesting. iii.The version numbers of HTTP (such as HTTP 1.1) Example GET/ yahoo.com HTTP/1.1

4. HTTP Protocol Version HTTP Client Request Header HTTP request’s header contains information falls into three different categories. i.General Information. Information about either client or server. ii.Entity Information. Information about the data being sent b/w client and server iii.Request Information. Request information form the client.

4. HTTP Protocol Version HTTP Client Request Header Example Accept Language: en-us Connection: Keep-Alive Host: Referer: User-Agent: Mozilla

4. HTTP Protocol Version HTTP Client Request Body If the post method is used in the HTTP request line, then the http request body contains data that is being send to the server.. For example. HTML form data.

Contents 1.Introduction to HTTP 2.Why is HTTP so popular ? 3.Different evolutions of HTTP HTTP 0.9, HTTP1.0 and HTTP HTTP Protocol Version HTTP 1.1 Client Request HTTP Client Request Line HTTP Client Request Header HTTP Client Request Body 4.2 HTTP 1.1 SERVER RESPONSE HTTP Server Response Line HTTP Server Response Header HTTP Server Response Body

4. HTTP Protocol Version HTTP 1.1 Server Response The HTTP response is sent by the server back to the client and contains the following three things HTTP Server Response Line HTTP Server Response Header HTTP Server Response Body

4. HTTP Protocol Version HTTP 1.1 Server Response Example HTTP OK (status line) Date Fri, 8Oct :09:03 GMT (General header) Server : Apache/5.0(Unix) PHP/5.0 (Response Header) Last modified Fri, 29 th Oct :09:03 GMT (Entity Header)

4. HTTP Protocol Version HTTP Server Response Line Example: HTTP/ ok Contains two bits of information. i.HTTP version number. ii.HTTP request code Request code that reports the success or failure of the request = Request is processed =Request is successful =Request failed because information has been removed =Client Error( Incomplete request or impossible request) =Server Error( the request is valid but the server is not able to complete the request)

4. HTTP Protocol Version HTTP Server Response Header Server response header consist of the following three types of information i General Information. Information about either client or server. iiEntity Information. Information about the data being sent b/w client and server iii.Response Information. Response information sending back to the client

4. HTTP Protocol Version HTTP Server Response Body If the request is successful, the HTTP response body contains the HTML code. If unsuccessful the a failure code is sent.

5. References. RFC