SlideShare a Scribd company logo
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?
5
Suppose client wants to visit www.yahoo.com
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
Ad

More Related Content

What's hot (20)

Email HTTP And FTP
Email HTTP And FTP Email HTTP And FTP
Email HTTP And FTP
Shishpal Vishnoi
 
HTTP Basic
HTTP BasicHTTP Basic
HTTP Basic
Joshua Yoon
 
HTTP & WWW
HTTP & WWWHTTP & WWW
HTTP & WWW
RazanAlsaif
 
Http-protocol
Http-protocolHttp-protocol
Http-protocol
Toushik Paul
 
The HTTP and Web
The HTTP and Web The HTTP and Web
The HTTP and Web
Gouasmia Zakaria
 
Introduction to HTTP - Hypertext Transfer Protocol
Introduction to HTTP - Hypertext Transfer ProtocolIntroduction to HTTP - Hypertext Transfer Protocol
Introduction to HTTP - Hypertext Transfer Protocol
Santiago Basulto
 
HTTP Basics
HTTP BasicsHTTP Basics
HTTP Basics
sanjoysanyal
 
Http VS. Https
Http VS. HttpsHttp VS. Https
Http VS. Https
Raed Aldahdooh
 
Http basics by-joshi_29_4_15-ppt
Http basics by-joshi_29_4_15-pptHttp basics by-joshi_29_4_15-ppt
Http basics by-joshi_29_4_15-ppt
Qwinix Technologies
 
Lec 7(HTTP Protocol)
Lec 7(HTTP Protocol)Lec 7(HTTP Protocol)
Lec 7(HTTP Protocol)
maamir farooq
 
(Ftp) file transfer protocol
(Ftp)   file transfer protocol(Ftp)   file transfer protocol
(Ftp) file transfer protocol
Gouasmia Zakaria
 
File Transfer protocols
File Transfer protocolsFile Transfer protocols
File Transfer protocols
Aayushi Pareek
 
File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocol
Vipin Rai
 
File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
selvakumar_b1985
 
HTTP
HTTPHTTP
HTTP
Daniel Kummer
 
transfer protocols,ftp,smtp,pop,imap
transfer protocols,ftp,smtp,pop,imaptransfer protocols,ftp,smtp,pop,imap
transfer protocols,ftp,smtp,pop,imap
AKSHIT KOHLI
 
Web technology Unit-I Part D - message format
Web technology Unit-I  Part D - message formatWeb technology Unit-I  Part D - message format
Web technology Unit-I Part D - message format
SSN College of Engineering, Kalavakkam
 
File transfer protocol (ftp)
File transfer protocol (ftp)File transfer protocol (ftp)
File transfer protocol (ftp)
Cort1026
 
File Transfer Protocol(FTP)
File Transfer Protocol(FTP)File Transfer Protocol(FTP)
File Transfer Protocol(FTP)
Varnit Yadav
 
File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocol
Milind Swane
 

Similar to Hypertexttransferprotocolhttp 131012171813-phpapp02 (20)

Compute rNetwork.pptx
Compute rNetwork.pptxCompute rNetwork.pptx
Compute rNetwork.pptx
ShehryarFreelancer
 
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
 
Http
HttpHttp
Http
Soba Arjun
 
INTERNET PROGRAMMING unit1 web essential
INTERNET PROGRAMMING unit1  web essentialINTERNET PROGRAMMING unit1  web essential
INTERNET PROGRAMMING unit1 web essential
psaranya21
 
Web & HTTP
Web & HTTPWeb & HTTP
Web & HTTP
MansiSingh269494
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
FabMinds
 
Http_Protocol.pptx
Http_Protocol.pptxHttp_Protocol.pptx
Http_Protocol.pptx
Abshar Fatima
 
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
Lori Head
 
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
AASTHAJAJOO
 
Clients and Servers.ppt
Clients and Servers.pptClients and Servers.ppt
Clients and Servers.ppt
Mohammed Ilyas
 
11 - ftp & web.ppt
11 - ftp & web.ppt11 - ftp & web.ppt
11 - ftp & web.ppt
ssuserf7cd2b
 
An Introduction To World Wide Web
An Introduction To World Wide WebAn Introduction To World Wide Web
An Introduction To World Wide Web
Abhishek Kharbanda
 
HTTP Request Smuggling
HTTP Request SmugglingHTTP Request Smuggling
HTTP Request Smuggling
Akash Ashokan
 
Http smuggling 1 200523064027
Http smuggling 1 200523064027Http smuggling 1 200523064027
Http smuggling 1 200523064027
n|u - The Open Security Community
 
Web technology-guide
Web technology-guideWeb technology-guide
Web technology-guide
Srihari
 
Http protocol
Http protocolHttp protocol
Http protocol
Arpita Naik
 
Module 5.pptx HTTP protocol on optical and wireless communication
Module 5.pptx HTTP protocol on optical and wireless communicationModule 5.pptx HTTP protocol on optical and wireless communication
Module 5.pptx HTTP protocol on optical and wireless communication
chandushivamurthy4
 
http presentation 1.pptx
http presentation 1.pptxhttp presentation 1.pptx
http presentation 1.pptx
DeepakKumar408406
 
APPLICATION LAYER PROTOCOLS .pptx
APPLICATION LAYER PROTOCOLS         .pptxAPPLICATION LAYER PROTOCOLS         .pptx
APPLICATION LAYER PROTOCOLS .pptx
ArnavPlayz
 
unit 1(chapter1).pdf
unit 1(chapter1).pdfunit 1(chapter1).pdf
unit 1(chapter1).pdf
ArunArun542872
 
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
 
INTERNET PROGRAMMING unit1 web essential
INTERNET PROGRAMMING unit1  web essentialINTERNET PROGRAMMING unit1  web essential
INTERNET PROGRAMMING unit1 web essential
psaranya21
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
FabMinds
 
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
Lori Head
 
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
AASTHAJAJOO
 
Clients and Servers.ppt
Clients and Servers.pptClients and Servers.ppt
Clients and Servers.ppt
Mohammed Ilyas
 
11 - ftp & web.ppt
11 - ftp & web.ppt11 - ftp & web.ppt
11 - ftp & web.ppt
ssuserf7cd2b
 
An Introduction To World Wide Web
An Introduction To World Wide WebAn Introduction To World Wide Web
An Introduction To World Wide Web
Abhishek Kharbanda
 
HTTP Request Smuggling
HTTP Request SmugglingHTTP Request Smuggling
HTTP Request Smuggling
Akash Ashokan
 
Web technology-guide
Web technology-guideWeb technology-guide
Web technology-guide
Srihari
 
Module 5.pptx HTTP protocol on optical and wireless communication
Module 5.pptx HTTP protocol on optical and wireless communicationModule 5.pptx HTTP protocol on optical and wireless communication
Module 5.pptx HTTP protocol on optical and wireless communication
chandushivamurthy4
 
APPLICATION LAYER PROTOCOLS .pptx
APPLICATION LAYER PROTOCOLS         .pptxAPPLICATION LAYER PROTOCOLS         .pptx
APPLICATION LAYER PROTOCOLS .pptx
ArnavPlayz
 
Ad

Recently uploaded (20)

Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
IEDM 2024 Tutorial2_Advances in CMOS Technologies and Future Directions for C...
organizerofv
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Ad

Hypertexttransferprotocolhttp 131012171813-phpapp02

  • 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? 5 Suppose client wants to visit www.yahoo.com
  • 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