SlideShare a Scribd company logo
Hypertext Transport Protocol
TEAM MEMBERS:
Allu Harshita-34
P.Aishwarya -39
P.Hrudaya sai bhavani -47
M.Tejasri -18
P.Sowmya -17
HTTP
• Hypertext Transport Protocol
• Language of the Web
– protocol used for communication between web
browsers and web servers
• TCP port 80
• RFC 2616
URI,URN,URL
• Uniform Resource Identifier
– Information about a resource
• Uniform Resource Name
– The name of the resource with in a namespace
• Uniform Resource Locator
– How to find the resource, a URI that says how
to find the resource
HTTP - URLs
• URL
– Uniform Resource Locator
• protocol (http, ftp, news)
• host name (name.domain name)
• port (usually 80 but many on 8080)
• directory path to the resource
• resource name
– http://xxx.myplace.com/www/index.html
– http://xxx.myplace.com:80/cgi-bin/t.exe
HTTP - methods
• Methods
– GET
• retrieve a URL from the server
– simple page request
– run a CGI program
– run a CGI with arguments attached to the URL
– POST
• preferred method for forms processing
• run a CGI program
• parameterized data in sysin
• more secure and private
HTTP - methods
• Methods
– PUT
• Used to transfer a file from the client to the server
– HEAD
• requests URLs status header only
• used for conditional URL handling for performance
enhancement schemes
– retrieve URL only if not in local cache or date is more
recent than cached copy
HTTP Request Packets
• Sent from client to server
• Consists of HTTP header
– header is hidden in browser environment
– contains:
• content type / mime type
• content length
• user agent - browser issuing request
• content types user agent can handle
• and a URL
HTTP Request Headers
• Precede HTTP Method requests
• headers are terminated by a blank line
• Header Fields:
– From
– Accept
– Accept-Encoding
– Accept Language
HTTP Request Headers
– Referer
– Authorization
– Charge-To
– If-Modified-Since
– Pragma
From:
• In internet mail format, the requesting user
• Does not have to correspond to requesting
host name (might be a proxy)
• should be a valid e-mail address
Accept:
– List of schemes which will be accepted by client
– <field> = Accept: <entry> * [,<entry>]
– <entry> = <content type> *[;<param>]
– <param> = <attr> = <float>
– <attr> = q / mxs / mxb
– <float> = <ANSI-C floating point >
– Accept: text/html
– Accept: audio/basic q-1
– if no Accept is found; plain/text is assumed
– may contain wildcards (*)
Accept-Encoding
• Like Accept but list is a list of acceptable
encoding schemes
• Ex
– Accept-Encoding: x-compress;x-zip
User-Agent
• Software product used by original client
• <field> = User-Agent: <product>
• <product> = <word> [/<version>]
• <version> = <word>
• Ex.
– User-Agent: IBM WebExplorer DLL /v960311
Referer
• For Server’s benefit, client lists URL od
document (or document type) from which
the URL in request was obtained.
• Allows server to generate back-links,
logging, tracing of bad links…
• Ex.
– Referer: http:/www.w3.com/xxx.html
Authorization:
• For Password and authentication schemes
• Ex.
– Authorization: user fred:mypassword
– Authorization: kerberos kerberosparameters
ChargeTo:
• Accounting information
• Accounting system dependent
Pragma:
• Same format as accept
• for servers
• should be passed through proxies, but used
by proxy
• only pragma currently defined is no-cache;
proxy should get document from owning
server rather than cache
Modified-Since:
• Used with GET to make a conditional GET
• if requested document has not been
modified since specified date a Modified
304 header is sent back to client instead of
document
– client can then display cached version
Response Packets
• Sent by server to client browser in response
to a Request Packet
Status Header
• “HTTP/1.0 sp code”
• Codes:
– 1xx - reserved for future use
– 2xx - successful, understood and accepted
– 3xx - further action needed to complete
– 4xx - bad syntax in client request
– 5xx - server can’t fulfill good request
HTTP Response Headers
• Sent by server to client browser
• Status Header
– Entities
• Content-Encoding:
• Content-Length:
• Content-Type:
• Expires:
• Last-Modified:
• extension-header
• Body – content (usually html)
Status Codes
• 200 OK
• 201 created
• 202 accepted
• 204 no content
• 301 moved perm.
• 302 moved temp
• 304 not modified
• 400 bad request
• 401 unauthorized
• 403 forbidden
• 404 not found
• 500 int. server error
• 501 not impl.
• 502 bad gateway
• 503 svc not avail
Statelessness
• Because of the Connect, Request,
Response, Disconnect nature of HTTP it is
said to be a stateless protocol
– i.e. from one web page to the next there is
nothing in the protocol that allows a web
program to maintain program “state” (like a
desktop program).
– “state” can be maintained by “witchery” or
“trickery” if it is needed
Maintaining program “state”
• Hidden variables (<input type=hidden>
• Sessions
– Special header tags interpreted by the server
• Used by ASP, PHP, JSP
– Implemented at the language api level

More Related Content

PPTX
Browser
PDF
About Http Connection
PDF
PPTX
Hypertex transfer protocol
PDF
Building Web Services
PPT
Introduction About PHP
PPT
HyperText Transfer Protocol
PPTX
HTTP fundamentals for developers
Browser
About Http Connection
Hypertex transfer protocol
Building Web Services
Introduction About PHP
HyperText Transfer Protocol
HTTP fundamentals for developers

What's hot (20)

PPT
Http request&response session 1 - by Vignesh.N
PPTX
Hypertext Transfer Protocol
PPTX
PPT
Hypertext transfer protocol (http)
PPTX
Web technologies: HTTP
PPT
Http request&response
PPT
Http
PPTX
Httpbasics 1207412539273264-9-converted
KEY
What's up with HTTP?
PPSX
Hypertext Transfer Protocol
PPTX
PPTX
Http protocol
PPTX
PPTX
general protocol basics
PPTX
HTTP Protocol Basic
PPTX
Hypertext Transfer Protocol
ODP
PHP Training: Module 1
PDF
Lec 7(HTTP Protocol)
PDF
21 HTTP Protocol #burningkeyboards
Http request&response session 1 - by Vignesh.N
Hypertext Transfer Protocol
Hypertext transfer protocol (http)
Web technologies: HTTP
Http request&response
Http
Httpbasics 1207412539273264-9-converted
What's up with HTTP?
Hypertext Transfer Protocol
Http protocol
general protocol basics
HTTP Protocol Basic
Hypertext Transfer Protocol
PHP Training: Module 1
Lec 7(HTTP Protocol)
21 HTTP Protocol #burningkeyboards
Ad

Similar to Hyper text transport protocol (20)

PDF
Introduction to HTTP
PPTX
Http Introduction
PPT
HTTPProtocol HTTPProtocol.pptHTTPProtocol.ppt
PPT
Http VS. Https
PPTX
HTTP Protocol.pptx network and security protocol
PPTX
Compute rNetwork.pptx
PPT
HTTP.ppt
PPT
Hypertext Transfer Protocol Hypertext Transfer Protocol
PPT
HTTP.ppt
PPT
HTTP (syper text transfer protocol)(6).ppt
PPT
HTTP_2.ppt
PPTX
http presentation 1.pptx
PPTX
www and http services
PPTX
Web technology Unit-I Part D - message format
PPT
thisisahypertextbastamaonanasiyaprom.ppt
PPTX
Module 5.pptx HTTP protocol on optical and wireless communication
PDF
Communicating on the web
PDF
HTTP In-depth
PPTX
hhtp (3).pptx hyper text transfer protocol
PPTX
HyperText Transfer Protocol (HTTP)
Introduction to HTTP
Http Introduction
HTTPProtocol HTTPProtocol.pptHTTPProtocol.ppt
Http VS. Https
HTTP Protocol.pptx network and security protocol
Compute rNetwork.pptx
HTTP.ppt
Hypertext Transfer Protocol Hypertext Transfer Protocol
HTTP.ppt
HTTP (syper text transfer protocol)(6).ppt
HTTP_2.ppt
http presentation 1.pptx
www and http services
Web technology Unit-I Part D - message format
thisisahypertextbastamaonanasiyaprom.ppt
Module 5.pptx HTTP protocol on optical and wireless communication
Communicating on the web
HTTP In-depth
hhtp (3).pptx hyper text transfer protocol
HyperText Transfer Protocol (HTTP)
Ad

More from HarshithaAllu (13)

PDF
Environmenal protection
PPTX
Ch5 inheritance
PPTX
Social project work-political parties
PPTX
ROLE OF PRINT MEDIA IN FREEDOM STRUGGLE
PPTX
Operating system
PPT
java programming - applets
PPT
GETTING STARTED WITH JAVA(beginner)
PPT
introduction to oops presentation
PPT
PRAGRAMMING IN JAVA (BEGINNER)
PPTX
Structure of neuron
PPTX
PRESSENTATION SKILLS
PPTX
IR remote sensing technology
PPTX
Closed loop (automated) insulin delivery
Environmenal protection
Ch5 inheritance
Social project work-political parties
ROLE OF PRINT MEDIA IN FREEDOM STRUGGLE
Operating system
java programming - applets
GETTING STARTED WITH JAVA(beginner)
introduction to oops presentation
PRAGRAMMING IN JAVA (BEGINNER)
Structure of neuron
PRESSENTATION SKILLS
IR remote sensing technology
Closed loop (automated) insulin delivery

Recently uploaded (20)

PDF
The scientific heritage No 166 (166) (2025)
PPT
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
PPTX
Derivatives of integument scales, beaks, horns,.pptx
PDF
An interstellar mission to test astrophysical black holes
PPTX
famous lake in india and its disturibution and importance
PPTX
2. Earth - The Living Planet Module 2ELS
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PPTX
Classification Systems_TAXONOMY_SCIENCE8.pptx
PDF
MIRIDeepImagingSurvey(MIDIS)oftheHubbleUltraDeepField
PPTX
2. Earth - The Living Planet earth and life
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PDF
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PDF
Phytochemical Investigation of Miliusa longipes.pdf
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PDF
. Radiology Case Scenariosssssssssssssss
PPTX
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
PPTX
ECG_Course_Presentation د.محمد صقران ppt
PPTX
microscope-Lecturecjchchchchcuvuvhc.pptx
PPTX
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
The scientific heritage No 166 (166) (2025)
The World of Physical Science, • Labs: Safety Simulation, Measurement Practice
Derivatives of integument scales, beaks, horns,.pptx
An interstellar mission to test astrophysical black holes
famous lake in india and its disturibution and importance
2. Earth - The Living Planet Module 2ELS
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
Classification Systems_TAXONOMY_SCIENCE8.pptx
MIRIDeepImagingSurvey(MIDIS)oftheHubbleUltraDeepField
2. Earth - The Living Planet earth and life
Biophysics 2.pdffffffffffffffffffffffffff
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
Phytochemical Investigation of Miliusa longipes.pdf
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
. Radiology Case Scenariosssssssssssssss
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
ECG_Course_Presentation د.محمد صقران ppt
microscope-Lecturecjchchchchcuvuvhc.pptx
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS

Hyper text transport protocol

  • 1. Hypertext Transport Protocol TEAM MEMBERS: Allu Harshita-34 P.Aishwarya -39 P.Hrudaya sai bhavani -47 M.Tejasri -18 P.Sowmya -17
  • 2. HTTP • Hypertext Transport Protocol • Language of the Web – protocol used for communication between web browsers and web servers • TCP port 80 • RFC 2616
  • 3. URI,URN,URL • Uniform Resource Identifier – Information about a resource • Uniform Resource Name – The name of the resource with in a namespace • Uniform Resource Locator – How to find the resource, a URI that says how to find the resource
  • 4. HTTP - URLs • URL – Uniform Resource Locator • protocol (http, ftp, news) • host name (name.domain name) • port (usually 80 but many on 8080) • directory path to the resource • resource name – http://xxx.myplace.com/www/index.html – http://xxx.myplace.com:80/cgi-bin/t.exe
  • 5. HTTP - methods • Methods – GET • retrieve a URL from the server – simple page request – run a CGI program – run a CGI with arguments attached to the URL – POST • preferred method for forms processing • run a CGI program • parameterized data in sysin • more secure and private
  • 6. HTTP - methods • Methods – PUT • Used to transfer a file from the client to the server – HEAD • requests URLs status header only • used for conditional URL handling for performance enhancement schemes – retrieve URL only if not in local cache or date is more recent than cached copy
  • 7. HTTP Request Packets • Sent from client to server • Consists of HTTP header – header is hidden in browser environment – contains: • content type / mime type • content length • user agent - browser issuing request • content types user agent can handle • and a URL
  • 8. HTTP Request Headers • Precede HTTP Method requests • headers are terminated by a blank line • Header Fields: – From – Accept – Accept-Encoding – Accept Language
  • 9. HTTP Request Headers – Referer – Authorization – Charge-To – If-Modified-Since – Pragma
  • 10. From: • In internet mail format, the requesting user • Does not have to correspond to requesting host name (might be a proxy) • should be a valid e-mail address
  • 11. Accept: – List of schemes which will be accepted by client – <field> = Accept: <entry> * [,<entry>] – <entry> = <content type> *[;<param>] – <param> = <attr> = <float> – <attr> = q / mxs / mxb – <float> = <ANSI-C floating point > – Accept: text/html – Accept: audio/basic q-1 – if no Accept is found; plain/text is assumed – may contain wildcards (*)
  • 12. Accept-Encoding • Like Accept but list is a list of acceptable encoding schemes • Ex – Accept-Encoding: x-compress;x-zip
  • 13. User-Agent • Software product used by original client • <field> = User-Agent: <product> • <product> = <word> [/<version>] • <version> = <word> • Ex. – User-Agent: IBM WebExplorer DLL /v960311
  • 14. Referer • For Server’s benefit, client lists URL od document (or document type) from which the URL in request was obtained. • Allows server to generate back-links, logging, tracing of bad links… • Ex. – Referer: http:/www.w3.com/xxx.html
  • 15. Authorization: • For Password and authentication schemes • Ex. – Authorization: user fred:mypassword – Authorization: kerberos kerberosparameters
  • 16. ChargeTo: • Accounting information • Accounting system dependent
  • 17. Pragma: • Same format as accept • for servers • should be passed through proxies, but used by proxy • only pragma currently defined is no-cache; proxy should get document from owning server rather than cache
  • 18. Modified-Since: • Used with GET to make a conditional GET • if requested document has not been modified since specified date a Modified 304 header is sent back to client instead of document – client can then display cached version
  • 19. Response Packets • Sent by server to client browser in response to a Request Packet
  • 20. Status Header • “HTTP/1.0 sp code” • Codes: – 1xx - reserved for future use – 2xx - successful, understood and accepted – 3xx - further action needed to complete – 4xx - bad syntax in client request – 5xx - server can’t fulfill good request
  • 21. HTTP Response Headers • Sent by server to client browser • Status Header – Entities • Content-Encoding: • Content-Length: • Content-Type: • Expires: • Last-Modified: • extension-header • Body – content (usually html)
  • 22. Status Codes • 200 OK • 201 created • 202 accepted • 204 no content • 301 moved perm. • 302 moved temp • 304 not modified • 400 bad request • 401 unauthorized • 403 forbidden • 404 not found • 500 int. server error • 501 not impl. • 502 bad gateway • 503 svc not avail
  • 23. Statelessness • Because of the Connect, Request, Response, Disconnect nature of HTTP it is said to be a stateless protocol – i.e. from one web page to the next there is nothing in the protocol that allows a web program to maintain program “state” (like a desktop program). – “state” can be maintained by “witchery” or “trickery” if it is needed
  • 24. Maintaining program “state” • Hidden variables (<input type=hidden> • Sessions – Special header tags interpreted by the server • Used by ASP, PHP, JSP – Implemented at the language api level