SlideShare a Scribd company logo
Basics of HTTP
All you need to know(for now)
1
A little bit of History first
• Problems before HTTP
• What is HTTP?
• How HTTP solved the problem?
2
TCP/IP model
3
https://what-when-how.com/data-communications-and-networking/network-models-data-
communications-and-networking/
Pillars of HTTP
• Path
• Methods
• Status Codes
• Headers
4
Client-Server workflow
• Open a TCP connection
• Send HTTP request
5
https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview
Client-Server workflow(cont.)
• Read the response sent by the server
• Close or reuse the connection for further requests
6
https://developer.mozilla.org/en-US/docs/Web/HTTP/Overview
HTTP workflow
7
https://rmohan.com/?p=1488
Bad practice
HTTP connection management
8
https://developer.mozilla.org/en-US/docs/Web/HTTP/Connection_management_in_HTTP_1.x
HTTP status codes
9
HTTP methods
10
https://www.quora.com/What-are-HTTP-methods-and-what-are-they-used-for
HTTP headers
• End-to-end headers
• These headers must be transmitted to the final
recipient of the message
• Hop-by-hop headers
• These headers are meaningful only for a single
transport-level connection, and must not be
retransmitted by proxies or cached.
11
A few headers
Authentication
• WWW-Authenticate
• Authorization
• Proxy-Authenticate
• Proxy-Authorization
12
HTTP response caching
13
https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching
A few headers(cont.)
Caching
• Age
• Cache-Control(Pragma for HTTP/1.0)
• Clear-Site-Data
• Expires
14
A few headers(cont.)
Conditionals
• ETag
• Last-Modified
• If-Match
• If-Modified-Since
• Vary
15
A few headers(cont.)
Connection management
• Connection
• Keep-Alive(args = {timeout, max})
Content Negotiation
• Accept: <MIME_type>/<MIME_subtype>
• Accept-{Charset, Encoding, Language}
16
A few headers(cont.)
Cookies
• Cookie: <cookie-list>
• Set-Cookie: <cookie-name>=<cookie-value>
17
https://medium.com/@piraveenaparalogarajah/sessions-and-cookies-
2c0919552f29
A few headers(cont.)
CORS
• Access-Control-Allow-Origin
• Access-Control-Allow-Credentials
• Access-Control-Allow-Methods
• Access-Control-Allow-Headers
Security
• Content-Security-Policy
• Expect-CT
• Strict-Transport-Security (HSTS)
18
A few headers(cont.)
Others
• Do Not Track
• Download
• Ranged Request
• Redirects, etc
19
Why HTTP
• HTTP is simple
• HTTP is extensible
• HTTP is stateless, but not sessionless
• HTTP is connection efficient
20
Finally HTTPS
21
https://www.copahost.com/blog/http-vs-https/
Thank You
22
Ad

Recommended

HTTP Protocol Basic
HTTP Protocol Basic
Chuong Mai
 
HTTP Basics
HTTP Basics
sanjoysanyal
 
REST & RESTful Web Services
REST & RESTful Web Services
Halil Burak Cetinkaya
 
Hypertext Transfer Protocol
Hypertext Transfer Protocol
Shubham Srivastava
 
Http protocol
Http protocol
Arpita Naik
 
5 configuring TCP/IP
5 configuring TCP/IP
Hameda Hurmat
 
Http-protocol
Http-protocol
Toushik Paul
 
Internet control message protocol
Internet control message protocol
asimnawaz54
 
Rest & RESTful WebServices
Rest & RESTful WebServices
Prateek Tandon
 
Icmp
Icmp
Principal,Guru Nanak Institute of Technology, Nagpur
 
Socket programming
Socket programming
harsh_bca06
 
Restful web services ppt
Restful web services ppt
OECLIB Odisha Electronics Control Library
 
PHP Syntax & Comments
PHP Syntax & Comments
Sidrah Noor
 
Http
Http
Luavis Kang
 
DomainKeys Identified Mail (DKIM).pptx
DomainKeys Identified Mail (DKIM).pptx
SrijanKumarShetty
 
CCNA training 101
CCNA training 101
Rohan Reddy
 
Introduction To REST
Introduction To REST
Bhavya Siddappa
 
Ssl https
Ssl https
Andrada Boldis
 
20 common port numbers and their purposes
20 common port numbers and their purposes
salamassh
 
Http
Http
NITT, KAMK
 
Tcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport Layer
tmavroidis
 
FTP - File Transfer Protocol
FTP - File Transfer Protocol
Peter R. Egli
 
IPv4 addressing and subnetting
IPv4 addressing and subnetting
Shashank Asthana
 
BASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKS
KABILESH RAMAR
 
ipv6 ppt
ipv6 ppt
Shiva Kumar
 
http presentation 1.pptx
http presentation 1.pptx
DeepakKumar408406
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
rahul kundu
 
Domain name system
Domain name system
Siddharth Chandel
 
Hyper_Text_Transfer_Protocol_Presentation_
Hyper_Text_Transfer_Protocol_Presentation_
RajaJain35
 
KMUTNB - Internet Programming 2/7
KMUTNB - Internet Programming 2/7
phuphax
 

More Related Content

What's hot (20)

Rest & RESTful WebServices
Rest & RESTful WebServices
Prateek Tandon
 
Icmp
Icmp
Principal,Guru Nanak Institute of Technology, Nagpur
 
Socket programming
Socket programming
harsh_bca06
 
Restful web services ppt
Restful web services ppt
OECLIB Odisha Electronics Control Library
 
PHP Syntax & Comments
PHP Syntax & Comments
Sidrah Noor
 
Http
Http
Luavis Kang
 
DomainKeys Identified Mail (DKIM).pptx
DomainKeys Identified Mail (DKIM).pptx
SrijanKumarShetty
 
CCNA training 101
CCNA training 101
Rohan Reddy
 
Introduction To REST
Introduction To REST
Bhavya Siddappa
 
Ssl https
Ssl https
Andrada Boldis
 
20 common port numbers and their purposes
20 common port numbers and their purposes
salamassh
 
Http
Http
NITT, KAMK
 
Tcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport Layer
tmavroidis
 
FTP - File Transfer Protocol
FTP - File Transfer Protocol
Peter R. Egli
 
IPv4 addressing and subnetting
IPv4 addressing and subnetting
Shashank Asthana
 
BASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKS
KABILESH RAMAR
 
ipv6 ppt
ipv6 ppt
Shiva Kumar
 
http presentation 1.pptx
http presentation 1.pptx
DeepakKumar408406
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
rahul kundu
 
Domain name system
Domain name system
Siddharth Chandel
 

Similar to Basics of HTTP - Nafis Fuad (20)

Hyper_Text_Transfer_Protocol_Presentation_
Hyper_Text_Transfer_Protocol_Presentation_
RajaJain35
 
KMUTNB - Internet Programming 2/7
KMUTNB - Internet Programming 2/7
phuphax
 
Http_Protocol.pptx
Http_Protocol.pptx
Abshar Fatima
 
Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02
Nidhitransport
 
HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)
Gurjot Singh
 
Lecture 6- http
Lecture 6- http
Saman M. Almufti
 
Juglouvain http revisited
Juglouvain http revisited
marctritschler
 
HTTP Basics Demo
HTTP Basics Demo
InMobi Technology
 
Http
Http
Soba Arjun
 
HTTP
HTTP
vaibhavrai1993
 
Compute rNetwork.pptx
Compute rNetwork.pptx
ShehryarFreelancer
 
Juglouvain http revisited
Juglouvain http revisited
Marc Tritschler
 
Http and its Applications
Http and its Applications
Nayan Dagliya
 
Hyper Text Transfer Protocol
Hyper Text Transfer Protocol
SouganthikaSankaresw
 
Hypertext Transfer Protocol
Hypertext Transfer Protocol
Rajan Pandey
 
The HTTP and Web
The HTTP and Web
Gouasmia Zakaria
 
An Introduction to HTTP
An Introduction to HTTP
Keerthana Krishnan
 
Learning HTTP 2 a practical guide for beginners First Edition Garza
Learning HTTP 2 a practical guide for beginners First Edition Garza
heynsmagat8k
 
21 HTTP Protocol #burningkeyboards
21 HTTP Protocol #burningkeyboards
Denis Ristic
 
presentation nasir11111111111111111.pptx
presentation nasir11111111111111111.pptx
MuhammadNasir342806
 
Hyper_Text_Transfer_Protocol_Presentation_
Hyper_Text_Transfer_Protocol_Presentation_
RajaJain35
 
KMUTNB - Internet Programming 2/7
KMUTNB - Internet Programming 2/7
phuphax
 
Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02
Nidhitransport
 
HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)
Gurjot Singh
 
Juglouvain http revisited
Juglouvain http revisited
marctritschler
 
Juglouvain http revisited
Juglouvain http revisited
Marc Tritschler
 
Http and its Applications
Http and its Applications
Nayan Dagliya
 
Hypertext Transfer Protocol
Hypertext Transfer Protocol
Rajan Pandey
 
Learning HTTP 2 a practical guide for beginners First Edition Garza
Learning HTTP 2 a practical guide for beginners First Edition Garza
heynsmagat8k
 
21 HTTP Protocol #burningkeyboards
21 HTTP Protocol #burningkeyboards
Denis Ristic
 
presentation nasir11111111111111111.pptx
presentation nasir11111111111111111.pptx
MuhammadNasir342806
 
Ad

More from Cefalo (13)

Code Smells and Refactoring - Satyajit Dey & Ashif Iqbal
Code Smells and Refactoring - Satyajit Dey & Ashif Iqbal
Cefalo
 
Overview of Cookies in HTTP - Miran al Mehrab
Overview of Cookies in HTTP - Miran al Mehrab
Cefalo
 
Handshaking with HTTPS - Rafiul Islam
Handshaking with HTTPS - Rafiul Islam
Cefalo
 
Evolution of HTTP - Miran Al Mehrab
Evolution of HTTP - Miran Al Mehrab
Cefalo
 
Content Negotiation in HTTP - Ibnul Tahsin Bhuiyan
Content Negotiation in HTTP - Ibnul Tahsin Bhuiyan
Cefalo
 
Conditional Requests in HTTP - Nafis Fuad
Conditional Requests in HTTP - Nafis Fuad
Cefalo
 
Software Design Principles and Best Practices - Satyajit Dey
Software Design Principles and Best Practices - Satyajit Dey
Cefalo
 
Tips to kick-start your Software Engineering Career - Ferdous Mahmud Shaon
Tips to kick-start your Software Engineering Career - Ferdous Mahmud Shaon
Cefalo
 
Rest API Authentication - Uttom Akash
Rest API Authentication - Uttom Akash
Cefalo
 
Overview of REST - Raihan Ullah
Overview of REST - Raihan Ullah
Cefalo
 
Getting started with Test Driven Development - Ferdous Mahmud Shaon
Getting started with Test Driven Development - Ferdous Mahmud Shaon
Cefalo
 
Brief of Caching - Rafiul Islam
Brief of Caching - Rafiul Islam
Cefalo
 
Cross Origin Resource Sharing (CORS) - Azizul Hakim
Cross Origin Resource Sharing (CORS) - Azizul Hakim
Cefalo
 
Code Smells and Refactoring - Satyajit Dey & Ashif Iqbal
Code Smells and Refactoring - Satyajit Dey & Ashif Iqbal
Cefalo
 
Overview of Cookies in HTTP - Miran al Mehrab
Overview of Cookies in HTTP - Miran al Mehrab
Cefalo
 
Handshaking with HTTPS - Rafiul Islam
Handshaking with HTTPS - Rafiul Islam
Cefalo
 
Evolution of HTTP - Miran Al Mehrab
Evolution of HTTP - Miran Al Mehrab
Cefalo
 
Content Negotiation in HTTP - Ibnul Tahsin Bhuiyan
Content Negotiation in HTTP - Ibnul Tahsin Bhuiyan
Cefalo
 
Conditional Requests in HTTP - Nafis Fuad
Conditional Requests in HTTP - Nafis Fuad
Cefalo
 
Software Design Principles and Best Practices - Satyajit Dey
Software Design Principles and Best Practices - Satyajit Dey
Cefalo
 
Tips to kick-start your Software Engineering Career - Ferdous Mahmud Shaon
Tips to kick-start your Software Engineering Career - Ferdous Mahmud Shaon
Cefalo
 
Rest API Authentication - Uttom Akash
Rest API Authentication - Uttom Akash
Cefalo
 
Overview of REST - Raihan Ullah
Overview of REST - Raihan Ullah
Cefalo
 
Getting started with Test Driven Development - Ferdous Mahmud Shaon
Getting started with Test Driven Development - Ferdous Mahmud Shaon
Cefalo
 
Brief of Caching - Rafiul Islam
Brief of Caching - Rafiul Islam
Cefalo
 
Cross Origin Resource Sharing (CORS) - Azizul Hakim
Cross Origin Resource Sharing (CORS) - Azizul Hakim
Cefalo
 
Ad

Recently uploaded (20)

CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
WSO2
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
WSO2
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Technologies
 
IObit Driver Booster Pro 12 Crack Latest Version Download
IObit Driver Booster Pro 12 Crack Latest Version Download
pcprocore
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
pcprocore
 
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
 
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
 
Introduction to Agile Frameworks for Product Managers.pdf
Introduction to Agile Frameworks for Product Managers.pdf
Ali Vahed
 
Microsoft-365-Administrator-s-Guide1.pdf
Microsoft-365-Administrator-s-Guide1.pdf
mazharatknl
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 
Complete WordPress Programming Guidance Book
Complete WordPress Programming Guidance Book
Shabista Imam
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
Best Practice for LLM Serving in the Cloud
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
WSO2
 
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Folding Cheat Sheet # 9 - List Unfolding 𝑢𝑛𝑓𝑜𝑙𝑑 as the Computational Dual of ...
Philip Schwarz
 
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
WSO2
 
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
Enable Your Cloud Journey With Microsoft Trusted Partner | IFI Tech
IFI Techsolutions
 
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Capability Deck 2025: Accelerating Innovation Through Intelligent Soft...
Emvigo Technologies
 
IObit Driver Booster Pro 12 Crack Latest Version Download
IObit Driver Booster Pro 12 Crack Latest Version Download
pcprocore
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
Decipher SEO Solutions for your startup needs.
Decipher SEO Solutions for your startup needs.
mathai2
 
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
IDM Crack with Internet Download Manager 6.42 Build 41 [Latest 2025]
pcprocore
 
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
OpenChain Webinar - AboutCode - Practical Compliance in One Stack – Licensing...
Shane Coughlan
 
arctitecture application system design os dsa
arctitecture application system design os dsa
za241967
 
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Test Case Design Techniques – Practical Examples & Best Practices in Software...
Muhammad Fahad Bashir
 
Introduction to Agile Frameworks for Product Managers.pdf
Introduction to Agile Frameworks for Product Managers.pdf
Ali Vahed
 
Microsoft-365-Administrator-s-Guide1.pdf
Microsoft-365-Administrator-s-Guide1.pdf
mazharatknl
 
A Guide to Telemedicine Software Development.pdf
A Guide to Telemedicine Software Development.pdf
Olivero Bozzelli
 
Complete WordPress Programming Guidance Book
Complete WordPress Programming Guidance Book
Shabista Imam
 
Zoneranker’s Digital marketing solutions
Zoneranker’s Digital marketing solutions
reenashriee
 
Best Practice for LLM Serving in the Cloud
Best Practice for LLM Serving in the Cloud
Alluxio, Inc.
 
Building Geospatial Data Warehouse for GIS by GIS with FME
Building Geospatial Data Warehouse for GIS by GIS with FME
Safe Software
 

Basics of HTTP - Nafis Fuad