SlideShare a Scribd company logo
HTTP
2
HTTP
HTTP stands for Hypertext Transfer Protocol. It's the foundation of
the World Wide Web, and it's how web browsers communicate with web
servers to fetch and display web pages.
The protocol transfers data in the form of plan text , hypertext ,
audio , video , and so on.
HTTP TRANSACTION
HTTP transaction between the client and server.
HTTP uses the services TCP , HTTP itself is a
stateless protocol.
There are two general type of HTTP
messages : request and response . Both
message type follow almost the same format .
REQUEST
MESSAGES
An HTTP request message is a series
of lines sent from a client (usually a
web browser) to a server to request a
resource.
A request message consists of a
request line , headers , and sometimes
a body .
5
REQUEST LINE
A request line is the first line of an HTTP request message sent by a
client (usually a web browser) to a server.
It consists of three parts:
1. Method: The HTTP method being used (e.g., GET, POST, PUT,
DELETE, etc.)
2. Request target: The URL or path of the resource being requested
3. HTTP version: The version of the HTTP protocol being used (e.g.,
HTTP/1.1)
Request type
method
URL HTTP version
6
METHODS
Indicate the action to be performed on a resource.
Here are the main HTTP methods:
1. GET: Retrieve a resource
2. POST: Create a new resource or send data to a server
3. PUT: Update an existing resource
4. DELETE: Delete a resource
5. HEAD: Retrieve metadata about a resource (without the
response body)
6. OPTIONS: Describe supported HTTP methods for a
resource
7. CONNECT: Establish a tunnel to a resource (for HTTPS)
8. PATCH: Partially update an existing resource.
The method are used to interact with resources on the
web , such as fetching web pages , submitting forms ,
7
URL
URL stands for Uniform Resource Locator. It's a unique address
that identifies a specific resource on the internet, such as a web
page, image, video, or document.
In an HTTP request message, the URL is included in the request
line. It specifies the path or resource that the client wants to access
on the server.
Example:
GET /images/logo.png HTTP/1.1
In this example, /images/logo.png is the URL of the image that
the client is requesting. The server will then locate and send the
image to the client.
8
HEADERS
Headers in Request Messages
Headers in request messages are sent from the client (e.g.,
web browser) to the server. They provide information about
the client, the desired content, and any relevant metadata.
Headers in Response Messages
Headers in response messages are sent from the
server to the client. They provide information about
the response, such as the status of the request, the
content type, and caching instructions.
9
CATEGORIES OF HEADERS
1. General Header
The general header gives general information about the messages and can present in
both a request and a response.
2. Request Header
The request can be present only in a request messages. It specifies the client’s
configuration and the client’s preferred document format.
3. Response Header
The request can be present only in a response messages. It specifies the server’s
configuration and special information about the request.
4. Entity Header
The Entity Header gives information about the body of the document . Although it is
mostly present in response messages , some request messages . Such as POST and PUT
method , that contain a body also use this type of header.
10
RESPONSE MESSAGE
An HTTP response message is a series of lines sent from a server to a client in response to an HTTP
request.
It typically consists of three parts:
1.Status Line: This line indicates the status of the request, including the HTTP version, status code, and a
reason phrase.
2.Headers: A series of key-value pairs that provide additional information about the response.
3.Response Body: The content of the response, which depends on the type of request and the status code
Example of an HTTP response message:
HTTP/1.1 200 OK
Date: Fri, 06 Sep 2024 00:00:32 GMT
Server: Apache/2.4.52 (Ubuntu)
Content-Length: 12 Content-Type: text/plain
Hello, world!
11
EXAMPLE:
12
THANK YOU

More Related Content

PPTX
PPTX
HTTP Protocol.pptx network and security protocol
PPTX
Hypertex transfer protocol
PPTX
Http
PPTX
Http Introduction
PDF
Rest http basics
PPT
Hyper text transport protocol
PDF
Introduction to HTTP
HTTP Protocol.pptx network and security protocol
Hypertex transfer protocol
Http
Http Introduction
Rest http basics
Hyper text transport protocol
Introduction to HTTP

Similar to hhtp (3).pptx hyper text transfer protocol (20)

PPTX
Web technology Unit-I Part D - message format
PPTX
Compute rNetwork.pptx
PPTX
HTTP request and response
PPTX
www and http services
PPTX
The HTTP and Web
PPT
Http request&response
PPTX
Hyper_Text_Transfer_Protocol_Presentation_
PDF
PPTX
IP UNIT 1.pptx
PPTX
Hypertext Transfer Protocol
PPT
KMUTNB - Internet Programming 2/7
PDF
Ch2 the application layer protocols_http_3
PDF
HTTP Definition and Basics.
PDF
21 HTTP Protocol #burningkeyboards
PPTX
Week3 lec 1
PPTX
computer network introduction. psc notes . Assisant professor in cse.
PPTX
http presentation 1.pptx
PPT
web_01_HTTP.ppt
Web technology Unit-I Part D - message format
Compute rNetwork.pptx
HTTP request and response
www and http services
The HTTP and Web
Http request&response
Hyper_Text_Transfer_Protocol_Presentation_
IP UNIT 1.pptx
Hypertext Transfer Protocol
KMUTNB - Internet Programming 2/7
Ch2 the application layer protocols_http_3
HTTP Definition and Basics.
21 HTTP Protocol #burningkeyboards
Week3 lec 1
computer network introduction. psc notes . Assisant professor in cse.
http presentation 1.pptx
web_01_HTTP.ppt
Ad

More from abhinandpk2405 (20)

PDF
compiler.pdfljdvgepitju4io3elkhldhyreyio4uw
PDF
process.pdfzljwiyrouyaeutoaetodtusiokklhh
PDF
threads (1).pdfmjlkjfwjgliwiufuaiusyroayr
PPTX
Complexity Classes.pptxfhasfuhaikfuahikhk
PPTX
2.Cache Memory.pptxoigeyu49-gasdihurovhvhd;oig
PPTX
Controlling I.pptxkosgpwoywpooiptiewpito
PPTX
linux unit 4 (2).pptxjiy8t7r7iguyguyy888
PPTX
LINUX M1 P4 notes.pptxgyfdes e4e4e54v 4
PPTX
Linux unit 2 part 3 notes.pptxl;lk;l; k
PPTX
randomaccess.pptxdfghjkoigyrsreuitttrdok
PPTX
Command line arguments & This keyword.pptx
PPTX
Efficiency,Perfomance& (1)studyhihhu.pptx
PPTX
Marketing Strategyyguigiuiiiguooogu.pptx
PPTX
Raid structure os.pptxmbj;fdjhlljtzejtjdfi
PPTX
QueueUsingArray-1.pptxnansbsbssnsnxbxbhs
PDF
Microprocessor module 4.pdfbabssbabanjxnsb
PPTX
KERNEL_I[1].pptxhbffffgbbbbbggg ffffvbbbhhhm
PPTX
ssosnnnnnnnnlkkkkkkkkkkkkkkkkkkkkkk.pptx
PPTX
Types of Operating Systemdddddddddd.pptx
PPTX
topologies abhi.pptxtopologiessssssssssd
compiler.pdfljdvgepitju4io3elkhldhyreyio4uw
process.pdfzljwiyrouyaeutoaetodtusiokklhh
threads (1).pdfmjlkjfwjgliwiufuaiusyroayr
Complexity Classes.pptxfhasfuhaikfuahikhk
2.Cache Memory.pptxoigeyu49-gasdihurovhvhd;oig
Controlling I.pptxkosgpwoywpooiptiewpito
linux unit 4 (2).pptxjiy8t7r7iguyguyy888
LINUX M1 P4 notes.pptxgyfdes e4e4e54v 4
Linux unit 2 part 3 notes.pptxl;lk;l; k
randomaccess.pptxdfghjkoigyrsreuitttrdok
Command line arguments & This keyword.pptx
Efficiency,Perfomance& (1)studyhihhu.pptx
Marketing Strategyyguigiuiiiguooogu.pptx
Raid structure os.pptxmbj;fdjhlljtzejtjdfi
QueueUsingArray-1.pptxnansbsbssnsnxbxbhs
Microprocessor module 4.pdfbabssbabanjxnsb
KERNEL_I[1].pptxhbffffgbbbbbggg ffffvbbbhhhm
ssosnnnnnnnnlkkkkkkkkkkkkkkkkkkkkkk.pptx
Types of Operating Systemdddddddddd.pptx
topologies abhi.pptxtopologiessssssssssd
Ad

Recently uploaded (20)

PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
Funds Management Learning Material for Beg
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
PPTX
Internet___Basics___Styled_ presentation
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
Β 
PDF
Introduction to the IoT system, how the IoT system works
PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
artificial intelligence overview of it and more
PPTX
innovation process that make everything different.pptx
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
SASE Traffic Flow - ZTNA Connector-1.pdf
Decoding a Decade: 10 Years of Applied CTI Discipline
WebRTC in SignalWire - troubleshooting media negotiation
PptxGenJS_Demo_Chart_20250317130215833.pptx
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
Funds Management Learning Material for Beg
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
Internet___Basics___Styled_ presentation
Unit-1 introduction to cyber security discuss about how to secure a system
Power Point - Lesson 3_2.pptx grad school presentation
Β 
Introduction to the IoT system, how the IoT system works
Slides PDF The World Game (s) Eco Economic Epochs.pdf
Introuction about ICD -10 and ICD-11 PPT.pptx
artificial intelligence overview of it and more
innovation process that make everything different.pptx
Tenda Login Guide: Access Your Router in 5 Easy Steps
πŸ’° π”πŠπ“πˆ πŠπ„πŒπ„ππ€ππ†π€π πŠπˆππ„π‘πŸ’πƒ π‡π€π‘πˆ 𝐈𝐍𝐈 πŸπŸŽπŸπŸ“ πŸ’°
Β 
An introduction to the IFRS (ISSB) Stndards.pdf
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION

hhtp (3).pptx hyper text transfer protocol

  • 2. 2 HTTP HTTP stands for Hypertext Transfer Protocol. It's the foundation of the World Wide Web, and it's how web browsers communicate with web servers to fetch and display web pages. The protocol transfers data in the form of plan text , hypertext , audio , video , and so on.
  • 3. HTTP TRANSACTION HTTP transaction between the client and server. HTTP uses the services TCP , HTTP itself is a stateless protocol. There are two general type of HTTP messages : request and response . Both message type follow almost the same format .
  • 4. REQUEST MESSAGES An HTTP request message is a series of lines sent from a client (usually a web browser) to a server to request a resource. A request message consists of a request line , headers , and sometimes a body .
  • 5. 5 REQUEST LINE A request line is the first line of an HTTP request message sent by a client (usually a web browser) to a server. It consists of three parts: 1. Method: The HTTP method being used (e.g., GET, POST, PUT, DELETE, etc.) 2. Request target: The URL or path of the resource being requested 3. HTTP version: The version of the HTTP protocol being used (e.g., HTTP/1.1) Request type method URL HTTP version
  • 6. 6 METHODS Indicate the action to be performed on a resource. Here are the main HTTP methods: 1. GET: Retrieve a resource 2. POST: Create a new resource or send data to a server 3. PUT: Update an existing resource 4. DELETE: Delete a resource 5. HEAD: Retrieve metadata about a resource (without the response body) 6. OPTIONS: Describe supported HTTP methods for a resource 7. CONNECT: Establish a tunnel to a resource (for HTTPS) 8. PATCH: Partially update an existing resource. The method are used to interact with resources on the web , such as fetching web pages , submitting forms ,
  • 7. 7 URL URL stands for Uniform Resource Locator. It's a unique address that identifies a specific resource on the internet, such as a web page, image, video, or document. In an HTTP request message, the URL is included in the request line. It specifies the path or resource that the client wants to access on the server. Example: GET /images/logo.png HTTP/1.1 In this example, /images/logo.png is the URL of the image that the client is requesting. The server will then locate and send the image to the client.
  • 8. 8 HEADERS Headers in Request Messages Headers in request messages are sent from the client (e.g., web browser) to the server. They provide information about the client, the desired content, and any relevant metadata. Headers in Response Messages Headers in response messages are sent from the server to the client. They provide information about the response, such as the status of the request, the content type, and caching instructions.
  • 9. 9 CATEGORIES OF HEADERS 1. General Header The general header gives general information about the messages and can present in both a request and a response. 2. Request Header The request can be present only in a request messages. It specifies the client’s configuration and the client’s preferred document format. 3. Response Header The request can be present only in a response messages. It specifies the server’s configuration and special information about the request. 4. Entity Header The Entity Header gives information about the body of the document . Although it is mostly present in response messages , some request messages . Such as POST and PUT method , that contain a body also use this type of header.
  • 10. 10 RESPONSE MESSAGE An HTTP response message is a series of lines sent from a server to a client in response to an HTTP request. It typically consists of three parts: 1.Status Line: This line indicates the status of the request, including the HTTP version, status code, and a reason phrase. 2.Headers: A series of key-value pairs that provide additional information about the response. 3.Response Body: The content of the response, which depends on the type of request and the status code Example of an HTTP response message: HTTP/1.1 200 OK Date: Fri, 06 Sep 2024 00:00:32 GMT Server: Apache/2.4.52 (Ubuntu) Content-Length: 12 Content-Type: text/plain Hello, world!