SlideShare a Scribd company logo
1 of 19
HyperText Transfer
Protocol (HTTP)
GURJOT SINGH

REVTI RAMAN SINGH

UG201113013

UG201110026

1
WHAT IS A PROTOCOL AND HTTP?
• Protocol:

A Protocol is a standard procedure for
defining and regulating communication. For
example TCP, UDP, HTTP etc.

• HTTP is the foundation of data communication for
the World Wide Web.

• The HTTP is the Web’s application-layer protocol
for transferring various forms of data between
server and client like plaintext, hypertext, image,
videos and sounds .
2
TERMINOLOGY
•

IP Address: An Internet Protocol address (IP address) is a numerical label assigned to each
device (e.g., computer, printer) participating in a computer network that uses the Internet
Protocol for communication.

•

TCP :Transmission Control Protocol (TCP) is one of the two original core protocols of
the Internet Protocol Suite (IP), and is so common that the entire suite is often called TCP/IP.
TCP provides reliable, ordered, error-checked delivery of a stream of octets between
programs running on computers connected to an intranet or the public Internet.

•

Port Number : A port number is a 16 bit number which when associated with IP address ,
completes the destination address for a communications session.

•

Socket : A socket is nothing but a combination of IP address and port number. It is simply an
end while communication.
3
HOW HTTP WORKS?
• HTTP is implemented in two programs: a client
program and a server program, executing on
different end systems, talk to each other by
exchanging HTTP messages.

•

The HTTP client first initiates a TCP
connection with the server. Once the
connection is established, the browser and the
server processes access TCP through their
socket interfaces.
4
HOW HTTP WORKS?
Suppose client wants to visit www.yahoo.com

5
HOW HTTP WORKS? (CONT.)

6
HOW HTTP WORKS? (CONT.)

7
HOW HTTP WORKS? (CONT.)

8
HOW HTTP WORKS? (CONT.)

9
PERSISTENT AND NON-PERSISTENT CONNECTIONS
• In non-persistent connection each request/response pair are sent over a
separate TCP connection.

• In persistent connections all of the requests and their corresponding responses
are sent over the same TCP connection.

10
HTTP REQUEST MESSAGE
•

The first line of an HTTP request message is
called the request line; the subsequent lines are
called the header lines. The request line has
three fields: the method field, the URL field, and
the HTTP version field. The method field can take
on several different values, including GET, POST,
HEAD, PUT, and DELETE etc. The great majority
of HTTP request messages use the GET method.
The GET method is used when the browser
requests an object, with the requested object
identified in the URL field.
11
REQUEST METHODS
• GET:
Retrieve Document identified in URL
• HEAD:
Retrieve meta information about document identified in URL
• DELETE:
Delete specified URL
• OPTIONS: Request information about available options
• PUT:
Store document under specified URL
• POST:
Give information to server
• TRACE:
Loopback request message
• CONNECT: For use by Proxies
12
HTTP RESPONSE MESSAGES
• It has three sections: an initial status line,
header lines, and then the entity body. The
entity body contains the requested object
itself. The status line has three fields: the
protocol version field, a status code, and a
corresponding status message.

13
SOME COMMON STATUS CODES AND
ASSOCIATED PHRASES
• Some common status codes and associated phrases
include:

• 200 OK: Request succeeded and the information is
returned in the response.

• 301 Moved Permanently: Requested object has been
permanently moved; the new URL is specified in Location:
header of the response message. The client software will
automatically retrieve the new URL.

• 400 Bad Request: This is a generic error code indicating
that the request could not be understood by the server.

• 404 Not Found: The requested document does not exist
on this server.

• 505 HTTP Version Not Supported: The requested HTTP
protocol version is not supported by the server.
14
15

An HTTP request using telnet
HTTP: A STATELESS PROTOCOL
• HTTP is a stateless protocol, because an HTTP server maintains no information
about the clients.

• If a particular client asks for the same object twice in a period of a few
seconds, the server does not respond by saying that it just served the object to
the client; instead, the server resends the object, as it has completely forgotten
what it did earlier.

16
USER-SERVER INTERACTIONS: COOKIES
•

HTTP server being stateless, simplifies server design and has permitted engineers to
develop high-performance Web servers that can handle thousands of simultaneous
TCP connections. However, it is often desirable for a Web site to identify users, either
because the server wishes to restrict user access or because it wants to serve content
as a function of the user identity. For these purposes, HTTP uses cookies. Cookies
allow sites to keep track of users.

•

The cookie technology has four components:

•
•
•
•

a cookie header line in the HTTP response message
a cookie header line in the HTTP request message
a cookie file kept on the user’s end system and managed by the user’s browser

a back-end database at the Web site
17
18
WEB CACHING
•

Also called proxy server, is a network entity that
satisfies HTTP requests on the behalf of an origin Web
server.

•

The Web cache has its own disk storage and keeps
copies of recently requested objects in this storage.

•

A Web cache can substantially reduce the response
time for a client request, particularly if the bandwidth
between the client and the origin server is much less
than the bandwidth between the client and the cache.

•

Web caches can substantially reduce traffic
19

More Related Content

What's hot

HTTP request and response
HTTP request and responseHTTP request and response
HTTP request and responseSahil Agarwal
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...rahul kundu
 
File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocolVipin Rai
 
Transmission media (data communication)
Transmission media (data communication)Transmission media (data communication)
Transmission media (data communication)Pritom Chaki
 
Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocolselvakumar_b1985
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)k33a
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptxAcad
 

What's hot (20)

HTTP request and response
HTTP request and responseHTTP request and response
HTTP request and response
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
 
Web services
Web servicesWeb services
Web services
 
Telnet
TelnetTelnet
Telnet
 
HTTP Basics
HTTP BasicsHTTP Basics
HTTP Basics
 
Application Layer
Application Layer Application Layer
Application Layer
 
Webservices
WebservicesWebservices
Webservices
 
Http Introduction
Http IntroductionHttp Introduction
Http Introduction
 
File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocol
 
Transmission media (data communication)
Transmission media (data communication)Transmission media (data communication)
Transmission media (data communication)
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Osi reference model
Osi reference modelOsi reference model
Osi reference model
 
Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocol
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 
internet protocol
internet protocolinternet protocol
internet protocol
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Database security
Database securityDatabase security
Database security
 
Network Layer design Issues.pptx
Network Layer design Issues.pptxNetwork Layer design Issues.pptx
Network Layer design Issues.pptx
 

Viewers also liked

Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolRajan Pandey
 
Introduction to HTTP protocol
Introduction to HTTP protocolIntroduction to HTTP protocol
Introduction to HTTP protocolAviran Mordo
 
SNMP Network Management the Essentials
SNMP Network Management the EssentialsSNMP Network Management the Essentials
SNMP Network Management the EssentialsLiving Online
 
Smart Instruments, Fieldbus, Ethernet and Wireless
Smart Instruments, Fieldbus, Ethernet and Wireless Smart Instruments, Fieldbus, Ethernet and Wireless
Smart Instruments, Fieldbus, Ethernet and Wireless Living Online
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management ProtocolPrasenjit Gayen
 
SCTP introduction
SCTP introductionSCTP introduction
SCTP introductionLi Xiong
 
Digital Transmission
Digital TransmissionDigital Transmission
Digital Transmissionanuragyadav94
 
Networking Standards And Protocols
Networking Standards And ProtocolsNetworking Standards And Protocols
Networking Standards And ProtocolsSteven Cahill
 
Computer network switching
Computer network switchingComputer network switching
Computer network switchingShivani Godha
 
Networking devices
Networking devicesNetworking devices
Networking devicesrupinderj
 
Network management
Network managementNetwork management
Network managementMohd Arif
 

Viewers also liked (20)

Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Snmp
SnmpSnmp
Snmp
 
Http Vs Https .
Http Vs Https . Http Vs Https .
Http Vs Https .
 
Introduction to HTTP protocol
Introduction to HTTP protocolIntroduction to HTTP protocol
Introduction to HTTP protocol
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Services
 
Network management systems in large enterprise
Network management systems in large enterpriseNetwork management systems in large enterprise
Network management systems in large enterprise
 
snmp
snmpsnmp
snmp
 
SNMP Network Management the Essentials
SNMP Network Management the EssentialsSNMP Network Management the Essentials
SNMP Network Management the Essentials
 
Smart Instruments, Fieldbus, Ethernet and Wireless
Smart Instruments, Fieldbus, Ethernet and Wireless Smart Instruments, Fieldbus, Ethernet and Wireless
Smart Instruments, Fieldbus, Ethernet and Wireless
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management Protocol
 
SCTP introduction
SCTP introductionSCTP introduction
SCTP introduction
 
Digital Transmission
Digital TransmissionDigital Transmission
Digital Transmission
 
Networking Standards And Protocols
Networking Standards And ProtocolsNetworking Standards And Protocols
Networking Standards And Protocols
 
Computer network switching
Computer network switchingComputer network switching
Computer network switching
 
Congestion control
Congestion controlCongestion control
Congestion control
 
VLAN
VLANVLAN
VLAN
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Verb powerpoint
Verb powerpointVerb powerpoint
Verb powerpoint
 
Network management
Network managementNetwork management
Network management
 
Smtp
SmtpSmtp
Smtp
 

Similar to HyperText Transfer Protocol (HTTP)

Web essentials clients, servers and communication – the internet – basic inte...
Web essentials clients, servers and communication – the internet – basic inte...Web essentials clients, servers and communication – the internet – basic inte...
Web essentials clients, servers and communication – the internet – basic inte...smitha273566
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocolsFabMinds
 
Module 5 Application and presentation Layer .pptx
Module 5 Application and presentation Layer .pptxModule 5 Application and presentation Layer .pptx
Module 5 Application and presentation Layer .pptxAASTHAJAJOO
 
Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Lori Head
 
11 - ftp & web.ppt
11 - ftp & web.ppt11 - ftp & web.ppt
11 - ftp & web.pptssuserf7cd2b
 
Clients and Servers.ppt
Clients and Servers.pptClients and Servers.ppt
Clients and Servers.pptMohammed Ilyas
 
HTTP Request Smuggling
HTTP Request SmugglingHTTP Request Smuggling
HTTP Request SmugglingAkash Ashokan
 
An Introduction To World Wide Web
An Introduction To World Wide WebAn Introduction To World Wide Web
An Introduction To World Wide WebAbhishek Kharbanda
 
Web technology-guide
Web technology-guideWeb technology-guide
Web technology-guideSrihari
 

Similar to HyperText Transfer Protocol (HTTP) (20)

Compute rNetwork.pptx
Compute rNetwork.pptxCompute rNetwork.pptx
Compute rNetwork.pptx
 
Web essentials clients, servers and communication – the internet – basic inte...
Web essentials clients, servers and communication – the internet – basic inte...Web essentials clients, servers and communication – the internet – basic inte...
Web essentials clients, servers and communication – the internet – basic inte...
 
Http
HttpHttp
Http
 
Web & HTTP
Web & HTTPWeb & HTTP
Web & HTTP
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
Http_Protocol.pptx
Http_Protocol.pptxHttp_Protocol.pptx
Http_Protocol.pptx
 
Module 5 Application and presentation Layer .pptx
Module 5 Application and presentation Layer .pptxModule 5 Application and presentation Layer .pptx
Module 5 Application and presentation Layer .pptx
 
Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207
 
11 - ftp & web.ppt
11 - ftp & web.ppt11 - ftp & web.ppt
11 - ftp & web.ppt
 
Clients and Servers.ppt
Clients and Servers.pptClients and Servers.ppt
Clients and Servers.ppt
 
Http smuggling 1 200523064027
Http smuggling 1 200523064027Http smuggling 1 200523064027
Http smuggling 1 200523064027
 
HTTP Request Smuggling
HTTP Request SmugglingHTTP Request Smuggling
HTTP Request Smuggling
 
An Introduction To World Wide Web
An Introduction To World Wide WebAn Introduction To World Wide Web
An Introduction To World Wide Web
 
Web technology-guide
Web technology-guideWeb technology-guide
Web technology-guide
 
Http protocol
Http protocolHttp protocol
Http protocol
 
unit 1(chapter1).pdf
unit 1(chapter1).pdfunit 1(chapter1).pdf
unit 1(chapter1).pdf
 
An Introduction to HTTP
An Introduction to HTTPAn Introduction to HTTP
An Introduction to HTTP
 
http presentation 1.pptx
http presentation 1.pptxhttp presentation 1.pptx
http presentation 1.pptx
 
15 Application layer.pptx
15 Application layer.pptx15 Application layer.pptx
15 Application layer.pptx
 
HTTP
HTTPHTTP
HTTP
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 

Recently uploaded (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 

HyperText Transfer Protocol (HTTP)

  • 1. HyperText Transfer Protocol (HTTP) GURJOT SINGH REVTI RAMAN SINGH UG201113013 UG201110026 1
  • 2. WHAT IS A PROTOCOL AND HTTP? • Protocol: A Protocol is a standard procedure for defining and regulating communication. For example TCP, UDP, HTTP etc. • HTTP is the foundation of data communication for the World Wide Web. • The HTTP is the Web’s application-layer protocol for transferring various forms of data between server and client like plaintext, hypertext, image, videos and sounds . 2
  • 3. TERMINOLOGY • IP Address: An Internet Protocol address (IP address) is a numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication. • TCP :Transmission Control Protocol (TCP) is one of the two original core protocols of the Internet Protocol Suite (IP), and is so common that the entire suite is often called TCP/IP. TCP provides reliable, ordered, error-checked delivery of a stream of octets between programs running on computers connected to an intranet or the public Internet. • Port Number : A port number is a 16 bit number which when associated with IP address , completes the destination address for a communications session. • Socket : A socket is nothing but a combination of IP address and port number. It is simply an end while communication. 3
  • 4. HOW HTTP WORKS? • HTTP is implemented in two programs: a client program and a server program, executing on different end systems, talk to each other by exchanging HTTP messages. • The HTTP client first initiates a TCP connection with the server. Once the connection is established, the browser and the server processes access TCP through their socket interfaces. 4
  • 5. HOW HTTP WORKS? Suppose client wants to visit www.yahoo.com 5
  • 6. HOW HTTP WORKS? (CONT.) 6
  • 7. HOW HTTP WORKS? (CONT.) 7
  • 8. HOW HTTP WORKS? (CONT.) 8
  • 9. HOW HTTP WORKS? (CONT.) 9
  • 10. PERSISTENT AND NON-PERSISTENT CONNECTIONS • In non-persistent connection each request/response pair are sent over a separate TCP connection. • In persistent connections all of the requests and their corresponding responses are sent over the same TCP connection. 10
  • 11. HTTP REQUEST MESSAGE • The first line of an HTTP request message is called the request line; the subsequent lines are called the header lines. The request line has three fields: the method field, the URL field, and the HTTP version field. The method field can take on several different values, including GET, POST, HEAD, PUT, and DELETE etc. The great majority of HTTP request messages use the GET method. The GET method is used when the browser requests an object, with the requested object identified in the URL field. 11
  • 12. REQUEST METHODS • GET: Retrieve Document identified in URL • HEAD: Retrieve meta information about document identified in URL • DELETE: Delete specified URL • OPTIONS: Request information about available options • PUT: Store document under specified URL • POST: Give information to server • TRACE: Loopback request message • CONNECT: For use by Proxies 12
  • 13. HTTP RESPONSE MESSAGES • It has three sections: an initial status line, header lines, and then the entity body. The entity body contains the requested object itself. The status line has three fields: the protocol version field, a status code, and a corresponding status message. 13
  • 14. SOME COMMON STATUS CODES AND ASSOCIATED PHRASES • Some common status codes and associated phrases include: • 200 OK: Request succeeded and the information is returned in the response. • 301 Moved Permanently: Requested object has been permanently moved; the new URL is specified in Location: header of the response message. The client software will automatically retrieve the new URL. • 400 Bad Request: This is a generic error code indicating that the request could not be understood by the server. • 404 Not Found: The requested document does not exist on this server. • 505 HTTP Version Not Supported: The requested HTTP protocol version is not supported by the server. 14
  • 15. 15 An HTTP request using telnet
  • 16. HTTP: A STATELESS PROTOCOL • HTTP is a stateless protocol, because an HTTP server maintains no information about the clients. • If a particular client asks for the same object twice in a period of a few seconds, the server does not respond by saying that it just served the object to the client; instead, the server resends the object, as it has completely forgotten what it did earlier. 16
  • 17. USER-SERVER INTERACTIONS: COOKIES • HTTP server being stateless, simplifies server design and has permitted engineers to develop high-performance Web servers that can handle thousands of simultaneous TCP connections. However, it is often desirable for a Web site to identify users, either because the server wishes to restrict user access or because it wants to serve content as a function of the user identity. For these purposes, HTTP uses cookies. Cookies allow sites to keep track of users. • The cookie technology has four components: • • • • a cookie header line in the HTTP response message a cookie header line in the HTTP request message a cookie file kept on the user’s end system and managed by the user’s browser a back-end database at the Web site 17
  • 18. 18
  • 19. WEB CACHING • Also called proxy server, is a network entity that satisfies HTTP requests on the behalf of an origin Web server. • The Web cache has its own disk storage and keeps copies of recently requested objects in this storage. • A Web cache can substantially reduce the response time for a client request, particularly if the bandwidth between the client and the origin server is much less than the bandwidth between the client and the cache. • Web caches can substantially reduce traffic 19