SlideShare a Scribd company logo
1 of 12
WEB & HTTP
WORLD WIDE WEB
WWW
The concept of Web was first proposed by Tim Berners-Lee and was
commercially started in the early 1990s. At present, the web is a
repository of documents called web pages. Web pages are distributed
all over the world and related pages are linked together. Each web
page is a file with a name and address.
Web pages are linked together using hypertext, which takes user from
one document to another when a link to it appears in the document.
Hypermedia is a similar concept but it includes not only text but also
images, audio and video files in web page documents.
WWW is a distributed client-server service. The service is distributed
over multiple locations called sites. Each site can have one or many
web pages.
WEB CONCEPTS
โ€ข Web Client: Web client or browser interpret and display a web page. It has three
parts: a controller, client protocols & interpreters. Ex. Google, Safari, etc.
โ€ข Web Server: Servers store web pages. Each time a request is sent to the server, it
sends back corresponding web pages.
โ€ข Web Documents: Web Documents are of three types-
โ€ข Static Document: Fixed-content documents that cannot be changed by user.
When a request is sent by browser, only a copy of the document is sent back.
It is created using markup languages such as: HTML, XML, XHTML, etc.
โ€ข Dynamic document: Created by servers whenever browser requests the
document. Each request creates a fresh document using pre-written script or
program. These documents are created using scripting languages such as
JSP, ASP, ColdFusion, etc.
โ€ข Active Document: Upon request from a browser, document or script is sent
back to be run at the client site. Can be created using Java Applets.
UNIFORM RESOURCE LOCATOR (URL)
โ€ข Serves as a unique identifier for a web page to distinguish it from others.
โ€ข Four identifiers are required to define a web page namely- Protocol, Host, Port
and Path.
โ€ข Protocol: Client Server program required to access web page. Protocols
generally used include HTTP, FTP, etc.
โ€ข Host: IP address or unique name given to server. IP address can be in
dotted-decimal notation and name can be the unique domain name of host.
โ€ข Port: Predefined 16-bit integer for client-server application. For eg. port no.
for HTTP is 80.
โ€ข Path: Identifies the location and name of file in underlying operating system.
โ€ข URL is composed of the above four identifiers in the following format:
protocol://host:port/path (port is optional)
https://en.wikipedia.org/wiki/Attacus_taprobanis
HYPERTEXT TRANSFER PROTOCOL (HTTP)
โ€ข HTTP is an application-layer protocol for transmitting hypermedia documents,
such as HTML.
โ€ข Under HTTP protocol, the serve has port number 80 while client uses temporary
port number
โ€ข HTTP uses TCP which is connection-oriented and reliable.
โ€ข When a client sends request to server, a connection must be established first and
then any transaction may take place. After transaction connection is terminated.
โ€ข Only one TCP connection is used to transfer data.
โ€ข Commands from the client to the serve are embedded in the request message.
โ€ข HTTP is a stateless protocol, meaning that the server does not keep any data
(state) between two requests.
โ€ข The messages sent by the client, usually a Web browser, are called requests and
the messages sent by the server as an answer are called responses.
โ€ข When HTTP is run over SSL, it is referred to as HTTPS and provides security.
PERSISTENT VS NON-PERSISTENT CONNECTIONS
HTTP CONCEPTS
โ€ข To retrieve documents from a single server, two methods can be used-
non-persistent and persistent connections.
โ€ข Persistent connections are the default since version 1.1 of HTTP but
can be changed to non-persistent which were the default prior to this
version.
โ€ข Non-persistent connections- It involves creating a new TCP connection
for each document being retrieved from a server.
โ€ข Persistent connections- It includes opening only one TCP connection
for a server and using it to retrieve documents. Connection can be
closed upon request from client or time-out.
MESSAGE FORMATS
HTTP CONCEPTS
โ€ข Each message is made of
four sections.
โ€ข In request message first
section is request line and in
response message is status
line.
โ€ข Other three sections have
same names - Header lines,
Blank line and Entity body.
Response message (Source: internet)
Request message (Source: internet)
REQUEST MESSAGE
HTTP CONCEPTS
โ€ข Request line consists of three fields- method, URL and version.
โ€ข Methods define the request type. Several methods are defined in
HTTP 1.1 as shown below.
โ€ข Zero or more request header lines can be used to send additional
information from client to server. Each header contains a header
name, a colon, a space, and a header value.
โ€ข Entity body includes comments to be sent or file to be published on
website and may or may not be present.
(Source: internet)
RESPONSE MESSAGE
HTTP CONCEPTS
โ€ข Status line is composed of a status code, version
and phrase.
โ€ข Status code is a 3-digit number which defines the
status of the request.
โ€ข The status phrase explains the status code in text
form.
โ€ข Zero or more request header lines can be used to
send additional information from client to server.
Each header contains a header name, a colon, a
space, and a header value.
โ€ข The body contains the document to be sent from
the server to the client. It is present unless the
response is error message.
(Source: internet)
COOKIES
HTTP CONCEPTS
โ€ข Cookies are pieces of data used to remember information about clients.
โ€ข When a server receives a request from a client, the server stores some
information about the client in a file or string. It includes the cookie in the
response sent to the client where the cookie is stored by the clientโ€™s bowser
in the cookie directory.
โ€ข When a client sends a request to the server, the browser looks up the
cookie directory to check if cookies from this server is present.If yes, then
the browser includes the cookie in the request and the server can then use
that data.
โ€ข Only the server that creates a cookie can access its content.
PROXY-SERVERS
HTTP CONCEPTS
โ€ข A proxy server is a computer that keeps copies of responses to recent
requests.
โ€ข HTTP supports proxy servers.
โ€ข Proxy servers function as both client and server.
โ€ข When HTTP client sends request to proxy server, the proxy server checks its
cache, if response is not stored in cache, it redirects the request to
corresponding server.
โ€ข Incoming responses are sent to proxy servers for future use.
โ€ข Proxy servers reduce the load on the original server, decrease traffic and
improves the latency.
โ€ข Client must be configured to access the proxy server instead of target server.
THANK YOU

More Related Content

Similar to Web & HTTP

Introduction to the Internet and Web.pptx
Introduction to the Internet and Web.pptxIntroduction to the Internet and Web.pptx
Introduction to the Internet and Web.pptxhishamousl
ย 
Clients and Servers.ppt
Clients and Servers.pptClients and Servers.ppt
Clients and Servers.pptMohammed Ilyas
ย 
Unit-5_Application_QoS.pdfcomputer network
Unit-5_Application_QoS.pdfcomputer networkUnit-5_Application_QoS.pdfcomputer network
Unit-5_Application_QoS.pdfcomputer network4SI21CS112RakeshMS
ย 
unit 1(chapter1).pdf
unit 1(chapter1).pdfunit 1(chapter1).pdf
unit 1(chapter1).pdfArunArun542872
ย 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocolsFabMinds
ย 
Http_Protocol.pptx
Http_Protocol.pptxHttp_Protocol.pptx
Http_Protocol.pptxAbshar 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 3207Lori Head
ย 
Www and http
Www and httpWww and http
Www and httpSanthiNivas
ย 
Http Introduction
Http IntroductionHttp Introduction
Http IntroductionAkshay Dhole
ย 
Distributed web based systems
Distributed web based systemsDistributed web based systems
Distributed web based systemsReza Gh
ย 
Internet tools and services
Internet tools and servicesInternet tools and services
Internet tools and serviceslearnt
ย 
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 protocol
Http protocolHttp protocol
Http protocolArpita Naik
ย 
application of http.pptx
application of http.pptxapplication of http.pptx
application of http.pptxssuseraf60311
ย 
www | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorialwww | HTTP | HTML - Tutorial
www | HTTP | HTML - TutorialMSA Technosoft
ย 

Similar to Web & HTTP (20)

HTTP
HTTPHTTP
HTTP
ย 
Introduction to the Internet and Web.pptx
Introduction to the Internet and Web.pptxIntroduction to the Internet and Web.pptx
Introduction to the Internet and Web.pptx
ย 
Clients and Servers.ppt
Clients and Servers.pptClients and Servers.ppt
Clients and Servers.ppt
ย 
15 Application layer.pptx
15 Application layer.pptx15 Application layer.pptx
15 Application layer.pptx
ย 
Unit-5_Application_QoS.pdfcomputer network
Unit-5_Application_QoS.pdfcomputer networkUnit-5_Application_QoS.pdfcomputer network
Unit-5_Application_QoS.pdfcomputer network
ย 
unit 1(chapter1).pdf
unit 1(chapter1).pdfunit 1(chapter1).pdf
unit 1(chapter1).pdf
ย 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
ย 
Http_Protocol.pptx
Http_Protocol.pptxHttp_Protocol.pptx
Http_Protocol.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
ย 
Www and http
Www and httpWww and http
Www and http
ย 
Http Introduction
Http IntroductionHttp Introduction
Http Introduction
ย 
Distributed web based systems
Distributed web based systemsDistributed web based systems
Distributed web based systems
ย 
Internet tools and services
Internet tools and servicesInternet tools and services
Internet tools and services
ย 
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...
ย 
Web technology Unit I Part C
Web technology Unit I  Part CWeb technology Unit I  Part C
Web technology Unit I Part C
ย 
Www ppt
Www pptWww ppt
Www ppt
ย 
IP UNIT 1.pptx
IP UNIT 1.pptxIP UNIT 1.pptx
IP UNIT 1.pptx
ย 
Http protocol
Http protocolHttp protocol
Http protocol
ย 
application of http.pptx
application of http.pptxapplication of http.pptx
application of http.pptx
ย 
www | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorialwww | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorial
ย 

Recently uploaded

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7Call Girls in Nagpur High Profile Call Girls
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .DerechoLaboralIndivi
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
ย 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
ย 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
ย 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
ย 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
ย 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 

Recently uploaded (20)

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
ย 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
ย 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
ย 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
ย 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
ย 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
ย 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
ย 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
ย 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
ย 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
ย 

Web & HTTP

  • 2. WORLD WIDE WEB WWW The concept of Web was first proposed by Tim Berners-Lee and was commercially started in the early 1990s. At present, the web is a repository of documents called web pages. Web pages are distributed all over the world and related pages are linked together. Each web page is a file with a name and address. Web pages are linked together using hypertext, which takes user from one document to another when a link to it appears in the document. Hypermedia is a similar concept but it includes not only text but also images, audio and video files in web page documents. WWW is a distributed client-server service. The service is distributed over multiple locations called sites. Each site can have one or many web pages.
  • 3. WEB CONCEPTS โ€ข Web Client: Web client or browser interpret and display a web page. It has three parts: a controller, client protocols & interpreters. Ex. Google, Safari, etc. โ€ข Web Server: Servers store web pages. Each time a request is sent to the server, it sends back corresponding web pages. โ€ข Web Documents: Web Documents are of three types- โ€ข Static Document: Fixed-content documents that cannot be changed by user. When a request is sent by browser, only a copy of the document is sent back. It is created using markup languages such as: HTML, XML, XHTML, etc. โ€ข Dynamic document: Created by servers whenever browser requests the document. Each request creates a fresh document using pre-written script or program. These documents are created using scripting languages such as JSP, ASP, ColdFusion, etc. โ€ข Active Document: Upon request from a browser, document or script is sent back to be run at the client site. Can be created using Java Applets.
  • 4. UNIFORM RESOURCE LOCATOR (URL) โ€ข Serves as a unique identifier for a web page to distinguish it from others. โ€ข Four identifiers are required to define a web page namely- Protocol, Host, Port and Path. โ€ข Protocol: Client Server program required to access web page. Protocols generally used include HTTP, FTP, etc. โ€ข Host: IP address or unique name given to server. IP address can be in dotted-decimal notation and name can be the unique domain name of host. โ€ข Port: Predefined 16-bit integer for client-server application. For eg. port no. for HTTP is 80. โ€ข Path: Identifies the location and name of file in underlying operating system. โ€ข URL is composed of the above four identifiers in the following format: protocol://host:port/path (port is optional) https://en.wikipedia.org/wiki/Attacus_taprobanis
  • 5. HYPERTEXT TRANSFER PROTOCOL (HTTP) โ€ข HTTP is an application-layer protocol for transmitting hypermedia documents, such as HTML. โ€ข Under HTTP protocol, the serve has port number 80 while client uses temporary port number โ€ข HTTP uses TCP which is connection-oriented and reliable. โ€ข When a client sends request to server, a connection must be established first and then any transaction may take place. After transaction connection is terminated. โ€ข Only one TCP connection is used to transfer data. โ€ข Commands from the client to the serve are embedded in the request message. โ€ข HTTP is a stateless protocol, meaning that the server does not keep any data (state) between two requests. โ€ข The messages sent by the client, usually a Web browser, are called requests and the messages sent by the server as an answer are called responses. โ€ข When HTTP is run over SSL, it is referred to as HTTPS and provides security.
  • 6. PERSISTENT VS NON-PERSISTENT CONNECTIONS HTTP CONCEPTS โ€ข To retrieve documents from a single server, two methods can be used- non-persistent and persistent connections. โ€ข Persistent connections are the default since version 1.1 of HTTP but can be changed to non-persistent which were the default prior to this version. โ€ข Non-persistent connections- It involves creating a new TCP connection for each document being retrieved from a server. โ€ข Persistent connections- It includes opening only one TCP connection for a server and using it to retrieve documents. Connection can be closed upon request from client or time-out.
  • 7. MESSAGE FORMATS HTTP CONCEPTS โ€ข Each message is made of four sections. โ€ข In request message first section is request line and in response message is status line. โ€ข Other three sections have same names - Header lines, Blank line and Entity body. Response message (Source: internet) Request message (Source: internet)
  • 8. REQUEST MESSAGE HTTP CONCEPTS โ€ข Request line consists of three fields- method, URL and version. โ€ข Methods define the request type. Several methods are defined in HTTP 1.1 as shown below. โ€ข Zero or more request header lines can be used to send additional information from client to server. Each header contains a header name, a colon, a space, and a header value. โ€ข Entity body includes comments to be sent or file to be published on website and may or may not be present. (Source: internet)
  • 9. RESPONSE MESSAGE HTTP CONCEPTS โ€ข Status line is composed of a status code, version and phrase. โ€ข Status code is a 3-digit number which defines the status of the request. โ€ข The status phrase explains the status code in text form. โ€ข Zero or more request header lines can be used to send additional information from client to server. Each header contains a header name, a colon, a space, and a header value. โ€ข The body contains the document to be sent from the server to the client. It is present unless the response is error message. (Source: internet)
  • 10. COOKIES HTTP CONCEPTS โ€ข Cookies are pieces of data used to remember information about clients. โ€ข When a server receives a request from a client, the server stores some information about the client in a file or string. It includes the cookie in the response sent to the client where the cookie is stored by the clientโ€™s bowser in the cookie directory. โ€ข When a client sends a request to the server, the browser looks up the cookie directory to check if cookies from this server is present.If yes, then the browser includes the cookie in the request and the server can then use that data. โ€ข Only the server that creates a cookie can access its content.
  • 11. PROXY-SERVERS HTTP CONCEPTS โ€ข A proxy server is a computer that keeps copies of responses to recent requests. โ€ข HTTP supports proxy servers. โ€ข Proxy servers function as both client and server. โ€ข When HTTP client sends request to proxy server, the proxy server checks its cache, if response is not stored in cache, it redirects the request to corresponding server. โ€ข Incoming responses are sent to proxy servers for future use. โ€ข Proxy servers reduce the load on the original server, decrease traffic and improves the latency. โ€ข Client must be configured to access the proxy server instead of target server.

Editor's Notes

  1. Secure Socket layer Provides confidentiality, client and server authentication and data integrity.