SlideShare a Scribd company logo
1 of 28
HT –H
     TP  ypertext Transfer Protocol


                      PONDU
                     MTECH CSE




1
Introduction

• Transfer protocol used throughout the
  WWW
• is a request-response protocol
• it is stateless
• latest version is HTTP/1.1
• runs on top of TCP on the standardized
  port 80



2
conti…

• Specifies what messages client may send
  to servers and what response they get
  back
• Each interaction consists of one ASCII
  request followed by one RFC 822 MIME
  like response
• All client and servers must obey this
  protocol


3
connections

• In http 1.0, after the connection
  established, a single request sent over
  and a single response sent back
• It is efficient for normal web page
  containing html text
• When web page contain large no of icons,
  images etc, establishing a TCP connection
  to transport a single icon become very
  expensive

4
Conti….

• HTTP 1.1 support persistent connections
• establish a TCP connection send a
  request and get a response
• Then send additional requests and get
  additional responses
• The relative overload due to TCP is much
  less per request
• It is possible to pipeline the requests


5
Methods

• Although HTTP was designed for use in
  the Web, it has been intentionally made to
  future object-oriented applications.
• so operations, called methods, other than
  just requesting a Web page are supported
• Each request consists of one or more lines
  of ASCII text, with first word on first line
  being the name of the method requested.


6
Conti…

    • The names are case sensitive
    • The methods are:
    • GET method
      requests the server to send the page.
      page is suitably encoded in MIME.
      vast majority of requests to Web servers are
       GETs.
      The usual form of GET is
          GET filename HTTP/1.1

7
conti…


• HEAD method:
    asks for the message header, without the
     actual page
    used to get a page's time of last modification,
     to collect information for indexing purposes
    to test a URL for validity.




8
Conti….

• PUT method:
    reverse of GET
    instead of reading the page, it writes the page
    makes it possible to build a collection of Web
     pages on a remote server
    request contains the page
    It may be encoded using MIME




9
Conti….

     • POST method:
     PUT is similar to POST method.
      bears a URL, but instead of replacing the
      existing data, the new data is ''appended'' to it
     neither PUT nor POST is used very much.




10
Conti….

• DELETE method:
     it removes the page.
     authentication and permission play a major
      role
     There is no guarantee that DELETE succeeds
     Because even if the remote HTTP server is
      willing to delete the page, the underlying file
      may have a mode that forbids the HTTP
      server from modifying


11
Conti….

• TRACE method:
      for debugging
     instructs the server to send back the request
      useful when requests are not being
      processed correctly and the client wants to
      know what request the server actually got.




12
Conti….

• CONNECT method:
     reserved for future use.


• OPTIONS method:
     provides a way for the client to query the
      server about its properties or those of a
      specific file




13
The built-in HTTP request methods
        Method                  Description
GET               Request to read a Web page

HEAD              Request to read a Web page’s header

PUT               Request to store a Web page

POST              Append to a named recourse

DELETE            Remove the Web page

TRACE             Echo the incoming request

CONNECT           Reserved for future use

OPTIONS           Query certain options

14
Status lines

• Every request gets a response consisting
  of a status line, and possibly additional
  information
• It contains a three-digit status code telling
  whether the request was satisfied, and if
  not, why not
• first digit is used to divide the responses
  into five major groups


15
The status code response groups


     Code        Meaning                     Example
1xx         Information           100=server agrees to handle clients
                                  request
2xx         Success               200=request succeeded;204=no
                                  content present
3xx         Redirection           301=page moved;304=cached page
                                  still valid
4xx         Client error          403=forbidden page;404=page not
                                  found
5xx         Server error          500=internal server error;503=try
                                  again later




16
Message Headers

• request line may be followed by additional
  lines with more information called request
  headers
• Responses may also have response
  headers
• Some headers can be used in either
  direction



17
HTTP message headers
Conti….

• User-Agent header allows the client to
  inform the server about its browser, os,
  and other properties
• It is used by the client to provide the
  server with the information
• four Accept headers tell the server what
  the client is willing to accept in the event




19
Conti….

 • Accept header specifies the MIME types
   that are welcome
 • Accept-Charset header gives the
   character set
 • Accept-encode header deals with
   compression methods
 • Accept-Language header indicates a
   natural language


20
Conti….
• If the server has a choice of pages, it can
  use this information to supply the one the
  client is looking for
• If it is unable to satisfy the request, an
  error code is returned and the request fails
• Host header names the server
• It is taken from the URL
• This header is mandatory



21
Conti….

• It is used because some IP addresses
  may serve multiple DNS names and the
  server needs some way to tell which host
  to hand the request to.
• Authorization header is needed for
  pages that are protected
• client may have to prove it has a right to
  see the page requested.


22
Conti….

• Although cookies are dealt with in RFC
  2109 rather than RFC 2616, they also
  have two headers
• Cookie header is used by clients to return
  to server a cookie that was previously sent
  by some machine in server's domain
• Date header can be used in both
  directions and contains the time and date
  the message was sent

23
Conti….

• Upgrade header is used to make it easier
  to make the transition to a future version
  of the HTTP protocol.
• It allows the client to announce what it can
  support and the server to assert what it is
  using.
• Server, allows the server to tell who it is
  and some of its properties if it wishes.


24
Conti….
• next four headers, all starting with
  Content-, allow the server to describe
  properties of page it is sending.
• Last-Modified header tells when the
  page was last modified.
• This header plays an important role in
  page caching.




25
Conti….

• Location header can be used if the page
  has moved or to allow multiple URLs to
  refer to the same page
• If a page is very large, a small client may
  not want it all at once
• Some servers will accept requests for byte
  ranges, so page can be fetched in multiple
  small units.


26
Conti….

• Accept-Ranges header announces
  server's willingness to handle this type of
  partial page request.
• Set-Cookie, is how servers send cookies
  to clients.
• client is expected to save the cookie and
  return it on subsequent requests to the
  server.


27
THANK YOU


28

More Related Content

What's hot

Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Shimona Agarwal
 
Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)johnny19910916
 
HTTP Protocol Basic
HTTP Protocol BasicHTTP Protocol Basic
HTTP Protocol BasicChuong Mai
 
HTTP fundamentals for developers
HTTP fundamentals for developersHTTP fundamentals for developers
HTTP fundamentals for developersMario Cardinal
 
Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014Navaneethan Naveen
 
Web and http computer network
Web and http computer networkWeb and http computer network
Web and http computer networkAnil Pokhrel
 
HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)Gurjot Singh
 
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
 
Web (HTTP) request to response life cycle
Web (HTTP) request to response life cycleWeb (HTTP) request to response life cycle
Web (HTTP) request to response life cycleGopakumar Kunduveetil
 
HTTP request and response
HTTP request and responseHTTP request and response
HTTP request and responseSahil Agarwal
 
Introduction to HTTP - Hypertext Transfer Protocol
Introduction to HTTP - Hypertext Transfer ProtocolIntroduction to HTTP - Hypertext Transfer Protocol
Introduction to HTTP - Hypertext Transfer ProtocolSantiago Basulto
 

What's hot (20)

Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)
 
HTTP Basic
HTTP BasicHTTP Basic
HTTP Basic
 
Http-protocol
Http-protocolHttp-protocol
Http-protocol
 
Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)
 
HTTP Protocol Basic
HTTP Protocol BasicHTTP Protocol Basic
HTTP Protocol Basic
 
HTTP
HTTPHTTP
HTTP
 
HTTP fundamentals for developers
HTTP fundamentals for developersHTTP fundamentals for developers
HTTP fundamentals for developers
 
HTTP & WWW
HTTP & WWWHTTP & WWW
HTTP & WWW
 
Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014Http request&response by Vignesh 15 MAR 2014
Http request&response by Vignesh 15 MAR 2014
 
Http
HttpHttp
Http
 
Web and http computer network
Web and http computer networkWeb and http computer network
Web and http computer network
 
Http VS. Https
Http VS. HttpsHttp VS. Https
Http VS. Https
 
HTTP
HTTPHTTP
HTTP
 
HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)
 
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 (HTTP) request to response life cycle
Web (HTTP) request to response life cycleWeb (HTTP) request to response life cycle
Web (HTTP) request to response life cycle
 
Http Introduction
Http IntroductionHttp Introduction
Http Introduction
 
HTTP request and response
HTTP request and responseHTTP request and response
HTTP request and response
 
Introduction to HTTP - Hypertext Transfer Protocol
Introduction to HTTP - Hypertext Transfer ProtocolIntroduction to HTTP - Hypertext Transfer Protocol
Introduction to HTTP - Hypertext Transfer Protocol
 
HTTP Presentation
HTTP Presentation HTTP Presentation
HTTP Presentation
 

Viewers also liked (19)

Introduction to HTTP protocol
Introduction to HTTP protocolIntroduction to HTTP protocol
Introduction to HTTP protocol
 
Http Vs Https .
Http Vs Https . Http Vs Https .
Http Vs Https .
 
File Transfer Protocol
File Transfer ProtocolFile Transfer Protocol
File Transfer Protocol
 
Web server
Web serverWeb server
Web server
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management Protocol
 
Application Layer
Application Layer Application Layer
Application Layer
 
Introduction to SNMP
Introduction to SNMPIntroduction to SNMP
Introduction to SNMP
 
Web servers
Web serversWeb servers
Web servers
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
TCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet ProtocolTCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet Protocol
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 
Wprowadzenie do HTTP/2
Wprowadzenie do HTTP/2Wprowadzenie do HTTP/2
Wprowadzenie do HTTP/2
 
Application layer
Application layerApplication layer
Application layer
 
An Introduction to HTTP
An Introduction to HTTPAn Introduction to HTTP
An Introduction to HTTP
 
HTTP
HTTPHTTP
HTTP
 
Application protocols
Application protocolsApplication protocols
Application protocols
 
PPT ch02
PPT ch02PPT ch02
PPT ch02
 

Similar to HyperText Transfer Protocol

CNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesCNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesSam Bowne
 
Hyper text transport protocol
Hyper text transport protocolHyper text transport protocol
Hyper text transport protocolHarshithaAllu
 
CNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application TechnologiesCNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application TechnologiesSam Bowne
 
Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02Nidhitransport
 
Ch 3: Web Application Technologies
Ch 3: Web Application TechnologiesCh 3: Web Application Technologies
Ch 3: Web Application TechnologiesSam Bowne
 
www | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorialwww | HTTP | HTML - Tutorial
www | HTTP | HTML - TutorialMSA Technosoft
 
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
 
SCWCD : The web client model : CHAP : 1
SCWCD  : The web client model : CHAP : 1SCWCD  : The web client model : CHAP : 1
SCWCD : The web client model : CHAP : 1Ben Abdallah Helmi
 
BITM3730 11-1.pptx
BITM3730 11-1.pptxBITM3730 11-1.pptx
BITM3730 11-1.pptxMattMarino13
 
application of http.pptx
application of http.pptxapplication of http.pptx
application of http.pptxssuseraf60311
 
BITM3730 Networking.pdf
BITM3730 Networking.pdfBITM3730 Networking.pdf
BITM3730 Networking.pdfMattMarino13
 
Using Communication and Messaging API in the HTML5 World
Using Communication and Messaging API in the HTML5 WorldUsing Communication and Messaging API in the HTML5 World
Using Communication and Messaging API in the HTML5 WorldGil Fink
 

Similar to HyperText Transfer Protocol (20)

Unit v
Unit v Unit v
Unit v
 
CNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application TechnologiesCNIT 129S - Ch 3: Web Application Technologies
CNIT 129S - Ch 3: Web Application Technologies
 
Web & HTTP
Web & HTTPWeb & HTTP
Web & HTTP
 
Hyper text transport protocol
Hyper text transport protocolHyper text transport protocol
Hyper text transport protocol
 
CNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application TechnologiesCNIT 129S: Ch 3: Web Application Technologies
CNIT 129S: Ch 3: Web Application Technologies
 
Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02
 
SCWCD : The web client model
SCWCD : The web client modelSCWCD : The web client model
SCWCD : The web client model
 
Ch 3: Web Application Technologies
Ch 3: Web Application TechnologiesCh 3: Web Application Technologies
Ch 3: Web Application Technologies
 
Compute rNetwork.pptx
Compute rNetwork.pptxCompute rNetwork.pptx
Compute rNetwork.pptx
 
www | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorialwww | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorial
 
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
 
SCWCD : The web client model : CHAP : 1
SCWCD  : The web client model : CHAP : 1SCWCD  : The web client model : CHAP : 1
SCWCD : The web client model : CHAP : 1
 
BITM3730 11-1.pptx
BITM3730 11-1.pptxBITM3730 11-1.pptx
BITM3730 11-1.pptx
 
Browser
BrowserBrowser
Browser
 
application of http.pptx
application of http.pptxapplication of http.pptx
application of http.pptx
 
BITM3730 Networking.pdf
BITM3730 Networking.pdfBITM3730 Networking.pdf
BITM3730 Networking.pdf
 
Ch-1_.ppt
Ch-1_.pptCh-1_.ppt
Ch-1_.ppt
 
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
 
Web
WebWeb
Web
 
Using Communication and Messaging API in the HTML5 World
Using Communication and Messaging API in the HTML5 WorldUsing Communication and Messaging API in the HTML5 World
Using Communication and Messaging API in the HTML5 World
 

Recently uploaded

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Recently uploaded (20)

AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

HyperText Transfer Protocol

  • 1. HT –H TP ypertext Transfer Protocol PONDU MTECH CSE 1
  • 2. Introduction • Transfer protocol used throughout the WWW • is a request-response protocol • it is stateless • latest version is HTTP/1.1 • runs on top of TCP on the standardized port 80 2
  • 3. conti… • Specifies what messages client may send to servers and what response they get back • Each interaction consists of one ASCII request followed by one RFC 822 MIME like response • All client and servers must obey this protocol 3
  • 4. connections • In http 1.0, after the connection established, a single request sent over and a single response sent back • It is efficient for normal web page containing html text • When web page contain large no of icons, images etc, establishing a TCP connection to transport a single icon become very expensive 4
  • 5. Conti…. • HTTP 1.1 support persistent connections • establish a TCP connection send a request and get a response • Then send additional requests and get additional responses • The relative overload due to TCP is much less per request • It is possible to pipeline the requests 5
  • 6. Methods • Although HTTP was designed for use in the Web, it has been intentionally made to future object-oriented applications. • so operations, called methods, other than just requesting a Web page are supported • Each request consists of one or more lines of ASCII text, with first word on first line being the name of the method requested. 6
  • 7. Conti… • The names are case sensitive • The methods are: • GET method requests the server to send the page. page is suitably encoded in MIME. vast majority of requests to Web servers are GETs. The usual form of GET is GET filename HTTP/1.1 7
  • 8. conti… • HEAD method: asks for the message header, without the actual page used to get a page's time of last modification, to collect information for indexing purposes to test a URL for validity. 8
  • 9. Conti…. • PUT method: reverse of GET instead of reading the page, it writes the page makes it possible to build a collection of Web pages on a remote server request contains the page It may be encoded using MIME 9
  • 10. Conti…. • POST method: PUT is similar to POST method.  bears a URL, but instead of replacing the existing data, the new data is ''appended'' to it neither PUT nor POST is used very much. 10
  • 11. Conti…. • DELETE method: it removes the page. authentication and permission play a major role There is no guarantee that DELETE succeeds Because even if the remote HTTP server is willing to delete the page, the underlying file may have a mode that forbids the HTTP server from modifying 11
  • 12. Conti…. • TRACE method:  for debugging instructs the server to send back the request  useful when requests are not being processed correctly and the client wants to know what request the server actually got. 12
  • 13. Conti…. • CONNECT method: reserved for future use. • OPTIONS method: provides a way for the client to query the server about its properties or those of a specific file 13
  • 14. The built-in HTTP request methods Method Description GET Request to read a Web page HEAD Request to read a Web page’s header PUT Request to store a Web page POST Append to a named recourse DELETE Remove the Web page TRACE Echo the incoming request CONNECT Reserved for future use OPTIONS Query certain options 14
  • 15. Status lines • Every request gets a response consisting of a status line, and possibly additional information • It contains a three-digit status code telling whether the request was satisfied, and if not, why not • first digit is used to divide the responses into five major groups 15
  • 16. The status code response groups Code Meaning Example 1xx Information 100=server agrees to handle clients request 2xx Success 200=request succeeded;204=no content present 3xx Redirection 301=page moved;304=cached page still valid 4xx Client error 403=forbidden page;404=page not found 5xx Server error 500=internal server error;503=try again later 16
  • 17. Message Headers • request line may be followed by additional lines with more information called request headers • Responses may also have response headers • Some headers can be used in either direction 17
  • 19. Conti…. • User-Agent header allows the client to inform the server about its browser, os, and other properties • It is used by the client to provide the server with the information • four Accept headers tell the server what the client is willing to accept in the event 19
  • 20. Conti…. • Accept header specifies the MIME types that are welcome • Accept-Charset header gives the character set • Accept-encode header deals with compression methods • Accept-Language header indicates a natural language 20
  • 21. Conti…. • If the server has a choice of pages, it can use this information to supply the one the client is looking for • If it is unable to satisfy the request, an error code is returned and the request fails • Host header names the server • It is taken from the URL • This header is mandatory 21
  • 22. Conti…. • It is used because some IP addresses may serve multiple DNS names and the server needs some way to tell which host to hand the request to. • Authorization header is needed for pages that are protected • client may have to prove it has a right to see the page requested. 22
  • 23. Conti…. • Although cookies are dealt with in RFC 2109 rather than RFC 2616, they also have two headers • Cookie header is used by clients to return to server a cookie that was previously sent by some machine in server's domain • Date header can be used in both directions and contains the time and date the message was sent 23
  • 24. Conti…. • Upgrade header is used to make it easier to make the transition to a future version of the HTTP protocol. • It allows the client to announce what it can support and the server to assert what it is using. • Server, allows the server to tell who it is and some of its properties if it wishes. 24
  • 25. Conti…. • next four headers, all starting with Content-, allow the server to describe properties of page it is sending. • Last-Modified header tells when the page was last modified. • This header plays an important role in page caching. 25
  • 26. Conti…. • Location header can be used if the page has moved or to allow multiple URLs to refer to the same page • If a page is very large, a small client may not want it all at once • Some servers will accept requests for byte ranges, so page can be fetched in multiple small units. 26
  • 27. Conti…. • Accept-Ranges header announces server's willingness to handle this type of partial page request. • Set-Cookie, is how servers send cookies to clients. • client is expected to save the cookie and return it on subsequent requests to the server. 27