SlideShare uma empresa Scribd logo
1 de 38
HTTP
The Hypertext Transfer Protocol
(HTTP) is at the heart of the Web
HTTP is implemented in two
programs:
• a client program and
• server program.
HTTP…
• The client program and server programs,
executing on different end systems, talk to
each other by exchanging HTTP messages.
• HTTP defines the structure of these messages
and how the client and server exchange the
messages.
Web page
• A Web page (also called a document) consists
of objects.
• An object is a simply file -- such as a HTML file,
a JPEG image, a GIF image, a Java applet, an
audio clip, etc. -- that is addressable by a
single URL.
• Most Web pages consist of a base HTML file
and several referenced objects.
Web page..
• For example, if a Web page contains HTML
text and five JPEG images, then the Web page
has six objects: the base HTML file plus the
five images.
• The base HTML file references the other
objects in the page with the objects' URLs.
• Each URL has two components:
– the host name of the server that houses the object and
– the object's path name.
• For example, the URL
www.someSchool.edu/someDepartment/picture.gif
host name path name
URL
Browser
• A browser is a user agent for the Web;
• it displays to the user the requested Web page
and provides numerous navigational and
configuration features.
• Web browsers also implement the client side
of HTTP.
• Thus, in the context of the Web, we will
interchangeably use the words "browser" and
"client".
Web server
• Web server houses Web objects, each
addressable by a URL.
• Web servers also implement the server side
of HTTP.
• Popular Web servers include Apache,
Microsoft Internet Information Server, and the
Netscape Enterprise Server.
HTTP
• HTTP defines how Web clients (i.e., browsers)
request Web pages from servers (i.e., Web
servers) and how servers transfer Web pages
to clients.
• When a user requests a Web page (e.g., clicks
on a hyperlink), the browser sends HTTP
request messages for the objects in the page
to the server.
• The server receives the requests and responds
with HTTP response messages that contain the
objects.
HTTP request response behavior
• The HTTP client first initiates a TCP connection with
the server.
• Once the connection is established, the browser and
the server processes access TCP through their socket
interfaces.
• On the client side the socket interface is the "door"
between the client process and the TCP connection;
• on the server side it is the "door" between the server
process and the TCP connection.
• The client sends HTTP request messages into its
socket interface and receives HTTP response
messages from its socket interface.
Stateless Protocol.
• It is important to note that the server sends
requested files to clients without storing any
state information about the client.
• Because an HTTP server maintains no
information about the clients, HTTP is said to
be a stateless protocol.
TCP Connections
• HTTP can use both
– non-persistent connections and
– persistent connections.
Non-Persistent Connections
• Suppose the page consists of a base HTML file
and 10 JPEG images, and that all 11 of these
objects reside on the same server.
• Suppose the URL for the base HTML file is
www.someSchool.edu/someDepartment/home.index
• Here is what happens:
Non-Persistent Connections...
1. The HTTP client initiates a TCP connection to
the server www.someSchool.edu.
Port number 80 is used as the default port
number at which the HTTP server will be
listening for HTTP clients that want to
retrieve documents using HTTP.
Non-Persistent Connections...
2. The HTTP client sends a HTTP request
message into the socket associated with the
TCP connection that was established in step
1.
The request message either includes the
entire URL or simply the path name
/someDepartment/home.index.
Non-Persistent Connections...
3. The HTTP server receives the request
message via the socket associated with the
connection that was established in step 1,
retrieves the object
/someDepartment/home.index
from its storage (RAM or disk), encapsulates
the object in a HTTP response message, and
sends the response message into the TCP
connection.
Non-Persistent Connections...
4. The HTTP server tells TCP to close the TCP
connection.
The HTTP client receives the response
message. The TCP connection terminates.
5. The message indicates that the encapsulated
object is an HTML file. The client extracts the
file from the response message, parses the
HTML file and finds references to the ten JPEG
objects.
Non-Persistent Connections...
6. The first four steps are then repeated for each
of the referenced JPEG objects.
Shortcomings of
Non persistent connection
1. A brand new connection must be established
and maintained for each requested object.
– TCP buffers must be allocated and TCP variables
must be kept in both the client and server.
2. Each object suffers two RTTs
3. Each object suffers from TCP slow start
because every TCP connection begins with a
TCP slow-start phase
Persistent Connections
• The server leaves the TCP connection open
after sending responses.
• Subsequent requests and responses between
the same client and server can be sent over
the same connection.
Persistent Connections...
• In particular, an entire Web page can be sent
over a single persistent TCP connection;
• Multiple Web pages residing on the same
server can be sent over one persistent TCP
connection.
• Typically, the HTTP server closes the
connection when it isn’t used for a certain
time.
Persistent Connections...
• There are two versions of persistent
connections:
– without pipelining
the client issues a new request only when the
previous response has been received.
– With pipelining
the HTTP client issues a request as soon as it
encounters a reference
HTTP Message Format
• There are two types of HTTP messages,
– request messages and
– response messages
HTTP Request Message
• Example
GET /somedir/page.html HTTP/1.1
Connection: close
User-agent: Mozilla/4.0
Accept: text/html, image/gif, image/jpeg
Accept-language:fr
HTTP Request Message...
• The message is written in ordinary ASCII text
• The message consists of five lines, each
followed by a carriage return and a line feed.
• The last line is followed by an additional
carriage return and line feed.
• The first line of a HTTP request message is
called the request line;
• The subsequent lines are called the header
lines.
HTTP Request Message...
• The request line has three fields: the method
field, the URL field, and the HTTP version field.
• The method field can take on several different
values, including GET, POST, and HEAD.
• The Connection: close header line, the
browser is telling the server that it doesn't
want to use persistent connections;
• It wants the server to close the connection
after sending the requested object.
HTTP Request Message...
• The User- agent: header line specifies the user
agent,
• i.e., the browser type that is making the
request to the server . Here the user agent is
Mozilla/4.0
• The Accept: header line tells the server the
type of objects the browser is prepared to
accept.
• In this case, the client is prepared to accept
HTML text, a GIF image or a JPEG image.
• The Accept-language: header indicates that
the user prefers to receive a French version of
the object
Format of a HTTP request message
HTTP Response Message
HTTP/1.1 200 OK
Connection: close
Date: Thu, 06 Aug 1998 12:00:15 GMT
Server: Apache/1.3.0 (Unix)
Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT
Content-Length: 6821
Content-Type: text/html
data data data data data ...
HTTP Response Message...
• It has three sections:
–an initial status line,
–six header lines,
–the entity body.
HTTP Response Message...
• The status line has three fields:
–the protocol version field,
–a status code,
–and a corresponding status message.
• 200 OK: Request succeeded and the information is
returned in the response.
• 301 Moved Permanently: Requested object has been
permanently moved; new URL is specified in Location:
header of the response message. The client software
will automatically retrieve the new URL.
• 400 Bad Request: A generic error code indicating that
the request could not be understood by the server.
• 404 Not Found: The requested document does not
exist on this server
• 505 HTTP Version Not Supported: The request HTTP
protocol version is not supported by the server.
HTTP Response Message...
• The server uses the Connection: close header
line to tell the client that it is going to close the
TCP connection after sending the message.
• The Date: header line indicates the time and date
when the HTTP response was created and sent by
the server.
• It is the time when the server retrieves the object
from its file system, inserts the object into the
response message and sends the response
message.
HTTP Response Message...
• The Server: header line indicates that the message was
generated by an Apache Web server; it is analogous to
the User-agent: header line in the HTTP request
message.
• The Last-Modified: header line indicates the time and
date when the object was created or last modified.
• The Last-Modified: header, which we cover in more
detail below, is critical for object caching, both in the
local client and in network cache (a.k.a. proxy) servers.
• The Content-Length: header line indicates the number
of bytes in the object being sent.
HTTP Response Message...
• The Content-Type: header line indicates that
the object in the entity body is HTML text.
(The object type is officially indicated by the
Content-Type: header and not by the file
extension.)
HTTP Response Message...
• The Content-Type: header line indicates that
the object in the entity body is HTML text.
(The object type is officially indicated by the
Content-Type: header and not by the file
extension.)
HTTP

Mais conteúdo relacionado

Mais procurados

Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Shimona Agarwal
 
Congestion control, slow start, fast retransmit
Congestion control, slow start, fast retransmit   Congestion control, slow start, fast retransmit
Congestion control, slow start, fast retransmit rajisri2
 
SMTP Simple Mail Transfer Protocol
SMTP Simple Mail Transfer ProtocolSMTP Simple Mail Transfer Protocol
SMTP Simple Mail Transfer ProtocolSIDDARAMAIAHMC
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolUjjayanta Bhaumik
 
Ppt for tranmission media
Ppt for tranmission mediaPpt for tranmission media
Ppt for tranmission mediaManish8976
 
Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteAtharaw Deshmukh
 
Wireless transmission
Wireless transmissionWireless transmission
Wireless transmissionSaba Rathinam
 
MEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROLMEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROLjunnubabu
 
SOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolSOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolAnushka Patil
 
Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)NetProtocol Xpert
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolRajan Pandey
 
Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp) Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp) RochakSrivastava3
 
Internet protocol stack
Internet protocol stackInternet protocol stack
Internet protocol stackAmi Prakash
 

Mais procurados (20)

Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)
 
Web services
Web servicesWeb services
Web services
 
Congestion control, slow start, fast retransmit
Congestion control, slow start, fast retransmit   Congestion control, slow start, fast retransmit
Congestion control, slow start, fast retransmit
 
SMTP Simple Mail Transfer Protocol
SMTP Simple Mail Transfer ProtocolSMTP Simple Mail Transfer Protocol
SMTP Simple Mail Transfer Protocol
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Ppt for tranmission media
Ppt for tranmission mediaPpt for tranmission media
Ppt for tranmission media
 
WSDL
WSDLWSDL
WSDL
 
HTTP Basics
HTTP BasicsHTTP Basics
HTTP Basics
 
Http Introduction
Http IntroductionHttp Introduction
Http Introduction
 
Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol Suite
 
Wireless transmission
Wireless transmissionWireless transmission
Wireless transmission
 
MEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROLMEDIUM ACCESS CONTROL
MEDIUM ACCESS CONTROL
 
SOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolSOAP - Simple Object Access Protocol
SOAP - Simple Object Access Protocol
 
Mobile Transport layer
Mobile Transport layerMobile Transport layer
Mobile Transport layer
 
Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)
 
Simple object access protocol(soap )
Simple object access protocol(soap )Simple object access protocol(soap )
Simple object access protocol(soap )
 
Simple Mail Transfer Protocol
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
 
Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp) Simple mail transfer protocol (smtp)
Simple mail transfer protocol (smtp)
 
Internet protocol stack
Internet protocol stackInternet protocol stack
Internet protocol stack
 
Web services SOAP
Web services SOAPWeb services SOAP
Web services SOAP
 

Destaque

Destaque (8)

User server interaction
User server interactionUser server interaction
User server interaction
 
Http
HttpHttp
Http
 
Dns And Snmp
Dns And SnmpDns And Snmp
Dns And Snmp
 
Snmp
SnmpSnmp
Snmp
 
Simple Network Management Protocol
Simple Network Management ProtocolSimple Network Management Protocol
Simple Network Management Protocol
 
HyperText Transfer Protocol
HyperText Transfer ProtocolHyperText Transfer Protocol
HyperText Transfer Protocol
 
Introduction to SNMP
Introduction to SNMPIntroduction to SNMP
Introduction to SNMP
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Semelhante a HTTP

Ch2 the application layer protocols_http_3
Ch2 the application layer protocols_http_3Ch2 the application layer protocols_http_3
Ch2 the application layer protocols_http_3Syed Ariful Islam Emon
 
application of http.pptx
application of http.pptxapplication of http.pptx
application of http.pptxssuseraf60311
 
Web Server Python Assignment You will develop a web server that ha.pdf
Web Server Python Assignment You will develop a web server that ha.pdfWeb Server Python Assignment You will develop a web server that ha.pdf
Web Server Python Assignment You will develop a web server that ha.pdfamirajsharma
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009Cathie101
 
11 - ftp & web.ppt
11 - ftp & web.ppt11 - ftp & web.ppt
11 - ftp & web.pptssuserf7cd2b
 
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptxZahouAmel1
 
Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02Nidhitransport
 
Unit-5_Application_QoS.pdfcomputer network
Unit-5_Application_QoS.pdfcomputer networkUnit-5_Application_QoS.pdfcomputer network
Unit-5_Application_QoS.pdfcomputer network4SI21CS112RakeshMS
 
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
 
Write in Python please Web Server Python Assignment You will dev.pdf
Write in Python please Web Server Python Assignment You will dev.pdfWrite in Python please Web Server Python Assignment You will dev.pdf
Write in Python please Web Server Python Assignment You will dev.pdfalbert20021
 
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
 

Semelhante a HTTP (20)

Ch2 the application layer protocols_http_3
Ch2 the application layer protocols_http_3Ch2 the application layer protocols_http_3
Ch2 the application layer protocols_http_3
 
application of http.pptx
application of http.pptxapplication of http.pptx
application of http.pptx
 
Web & HTTP
Web & HTTPWeb & HTTP
Web & HTTP
 
http presentation 1.pptx
http presentation 1.pptxhttp presentation 1.pptx
http presentation 1.pptx
 
Web Server Python Assignment You will develop a web server that ha.pdf
Web Server Python Assignment You will develop a web server that ha.pdfWeb Server Python Assignment You will develop a web server that ha.pdf
Web Server Python Assignment You will develop a web server that ha.pdf
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Web Services 2009
Web Services 2009Web Services 2009
Web Services 2009
 
Compute rNetwork.pptx
Compute rNetwork.pptxCompute rNetwork.pptx
Compute rNetwork.pptx
 
Http_Protocol.pptx
Http_Protocol.pptxHttp_Protocol.pptx
Http_Protocol.pptx
 
11 - ftp & web.ppt
11 - ftp & web.ppt11 - ftp & web.ppt
11 - ftp & web.ppt
 
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
 
Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02Hypertexttransferprotocolhttp 131012171813-phpapp02
Hypertexttransferprotocolhttp 131012171813-phpapp02
 
Unit-5_Application_QoS.pdfcomputer network
Unit-5_Application_QoS.pdfcomputer networkUnit-5_Application_QoS.pdfcomputer network
Unit-5_Application_QoS.pdfcomputer network
 
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...
 
Write in Python please Web Server Python Assignment You will dev.pdf
Write in Python please Web Server Python Assignment You will dev.pdfWrite in Python please Web Server Python Assignment You will dev.pdf
Write in Python please Web Server Python Assignment You will dev.pdf
 
Http
HttpHttp
Http
 
Lecture 6- http
Lecture  6- httpLecture  6- http
Lecture 6- http
 
Web technology
Web technologyWeb technology
Web technology
 
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
 
IP UNIT 1.pptx
IP UNIT 1.pptxIP UNIT 1.pptx
IP UNIT 1.pptx
 

Mais de bhavanatmithun

Mais de bhavanatmithun (12)

Code optimisation presnted
Code optimisation presntedCode optimisation presnted
Code optimisation presnted
 
computer networks
computer networkscomputer networks
computer networks
 
Deadlock
DeadlockDeadlock
Deadlock
 
krisibhavan site
krisibhavan sitekrisibhavan site
krisibhavan site
 
Types of cn, protocols and standards
Types of cn, protocols and standardsTypes of cn, protocols and standards
Types of cn, protocols and standards
 
Snmp
SnmpSnmp
Snmp
 
Iso osi and tcp-ip reference models
Iso osi and tcp-ip reference modelsIso osi and tcp-ip reference models
Iso osi and tcp-ip reference models
 
FTP
FTPFTP
FTP
 
DNS
DNSDNS
DNS
 
application layer protocols
application layer protocolsapplication layer protocols
application layer protocols
 
Group communication
Group communicationGroup communication
Group communication
 
Group communication
Group communicationGroup communication
Group communication
 

Último

📞 Contact Number 8617697112 VIP Ganderbal Call Girls
📞 Contact Number 8617697112 VIP Ganderbal Call Girls📞 Contact Number 8617697112 VIP Ganderbal Call Girls
📞 Contact Number 8617697112 VIP Ganderbal Call GirlsNitya salvi
 
Top Rated Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
Top Rated  Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...Top Rated  Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
Top Rated Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...Call Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Call Girls in Nagpur High Profile
 
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...rahim quresi
 
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...rahim quresi
 
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
Independent Garulia Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Garulia Escorts ✔ 9332606886✔ Full Night With Room Online Booking...Independent Garulia Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Garulia Escorts ✔ 9332606886✔ Full Night With Room Online Booking...Riya Pathan
 
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment BookingCall Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Bookingnoor ahmed
 
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...SUHANI PANDEY
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...ritikasharma
 
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...noor ahmed
 
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna... Shivani Pandey
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...russian goa call girl and escorts service
 
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...Apsara Of India
 
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...noor ahmed
 
Hotel And Home Service Available Kolkata Call Girls Sonagachi ✔ 6297143586 ✔C...
Hotel And Home Service Available Kolkata Call Girls Sonagachi ✔ 6297143586 ✔C...Hotel And Home Service Available Kolkata Call Girls Sonagachi ✔ 6297143586 ✔C...
Hotel And Home Service Available Kolkata Call Girls Sonagachi ✔ 6297143586 ✔C...ritikasharma
 
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl GoaRussian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goasexy call girls service in goa
 

Último (20)

📞 Contact Number 8617697112 VIP Ganderbal Call Girls
📞 Contact Number 8617697112 VIP Ganderbal Call Girls📞 Contact Number 8617697112 VIP Ganderbal Call Girls
📞 Contact Number 8617697112 VIP Ganderbal Call Girls
 
Top Rated Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
Top Rated  Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...Top Rated  Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
Top Rated Pune Call Girls Pimpri Chinchwad ⟟ 6297143586 ⟟ Call Me For Genuin...
 
Top Rated Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Dhayari ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
 
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
𓀤Call On 6297143586 𓀤 Sonagachi Call Girls In All Kolkata 24/7 Provide Call W...
 
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Sonagachi ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
 
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Manjri Call Me 7737669865 Budget Friendly No Advance Booking
 
Independent Garulia Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Garulia Escorts ✔ 9332606886✔ Full Night With Room Online Booking...Independent Garulia Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
Independent Garulia Escorts ✔ 9332606886✔ Full Night With Room Online Booking...
 
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in  Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Malviya Nagar, (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment BookingCall Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
Call Girls in Barasat | 7001035870 At Low Cost Cash Payment Booking
 
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
VIP Model Call Girls Koregaon Park ( Pune ) Call ON 8005736733 Starting From ...
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
 
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
 
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034  Independent Chenna...
Verified Trusted Call Girls Tambaram Chennai ✔✔7427069034 Independent Chenna...
 
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...Call Girls  Agency In Goa  💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
Call Girls Agency In Goa 💚 9316020077 💚 Call Girl Goa By Russian Call Girl ...
 
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
Karnal Call Girls 8860008073 Dyal Singh Colony Call Girls Service in Karnal E...
 
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort GoaDesi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
 
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
 
Hotel And Home Service Available Kolkata Call Girls Sonagachi ✔ 6297143586 ✔C...
Hotel And Home Service Available Kolkata Call Girls Sonagachi ✔ 6297143586 ✔C...Hotel And Home Service Available Kolkata Call Girls Sonagachi ✔ 6297143586 ✔C...
Hotel And Home Service Available Kolkata Call Girls Sonagachi ✔ 6297143586 ✔C...
 
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl GoaRussian Escorts Agency In Goa  💚 9316020077 💚 Russian Call Girl Goa
Russian Escorts Agency In Goa 💚 9316020077 💚 Russian Call Girl Goa
 
Russian ℂall gIRLS In Goa 9316020077 ℂall gIRLS Service In Goa
Russian ℂall gIRLS In Goa 9316020077  ℂall gIRLS Service  In GoaRussian ℂall gIRLS In Goa 9316020077  ℂall gIRLS Service  In Goa
Russian ℂall gIRLS In Goa 9316020077 ℂall gIRLS Service In Goa
 

HTTP

  • 1. HTTP The Hypertext Transfer Protocol (HTTP) is at the heart of the Web HTTP is implemented in two programs: • a client program and • server program.
  • 2. HTTP… • The client program and server programs, executing on different end systems, talk to each other by exchanging HTTP messages. • HTTP defines the structure of these messages and how the client and server exchange the messages.
  • 3. Web page • A Web page (also called a document) consists of objects. • An object is a simply file -- such as a HTML file, a JPEG image, a GIF image, a Java applet, an audio clip, etc. -- that is addressable by a single URL. • Most Web pages consist of a base HTML file and several referenced objects.
  • 4. Web page.. • For example, if a Web page contains HTML text and five JPEG images, then the Web page has six objects: the base HTML file plus the five images. • The base HTML file references the other objects in the page with the objects' URLs.
  • 5. • Each URL has two components: – the host name of the server that houses the object and – the object's path name. • For example, the URL www.someSchool.edu/someDepartment/picture.gif host name path name URL
  • 6. Browser • A browser is a user agent for the Web; • it displays to the user the requested Web page and provides numerous navigational and configuration features. • Web browsers also implement the client side of HTTP. • Thus, in the context of the Web, we will interchangeably use the words "browser" and "client".
  • 7. Web server • Web server houses Web objects, each addressable by a URL. • Web servers also implement the server side of HTTP. • Popular Web servers include Apache, Microsoft Internet Information Server, and the Netscape Enterprise Server.
  • 8. HTTP • HTTP defines how Web clients (i.e., browsers) request Web pages from servers (i.e., Web servers) and how servers transfer Web pages to clients. • When a user requests a Web page (e.g., clicks on a hyperlink), the browser sends HTTP request messages for the objects in the page to the server. • The server receives the requests and responds with HTTP response messages that contain the objects.
  • 9.
  • 10. HTTP request response behavior • The HTTP client first initiates a TCP connection with the server. • Once the connection is established, the browser and the server processes access TCP through their socket interfaces. • On the client side the socket interface is the "door" between the client process and the TCP connection; • on the server side it is the "door" between the server process and the TCP connection. • The client sends HTTP request messages into its socket interface and receives HTTP response messages from its socket interface.
  • 11. Stateless Protocol. • It is important to note that the server sends requested files to clients without storing any state information about the client. • Because an HTTP server maintains no information about the clients, HTTP is said to be a stateless protocol.
  • 12. TCP Connections • HTTP can use both – non-persistent connections and – persistent connections.
  • 13. Non-Persistent Connections • Suppose the page consists of a base HTML file and 10 JPEG images, and that all 11 of these objects reside on the same server. • Suppose the URL for the base HTML file is www.someSchool.edu/someDepartment/home.index • Here is what happens:
  • 14. Non-Persistent Connections... 1. The HTTP client initiates a TCP connection to the server www.someSchool.edu. Port number 80 is used as the default port number at which the HTTP server will be listening for HTTP clients that want to retrieve documents using HTTP.
  • 15. Non-Persistent Connections... 2. The HTTP client sends a HTTP request message into the socket associated with the TCP connection that was established in step 1. The request message either includes the entire URL or simply the path name /someDepartment/home.index.
  • 16. Non-Persistent Connections... 3. The HTTP server receives the request message via the socket associated with the connection that was established in step 1, retrieves the object /someDepartment/home.index from its storage (RAM or disk), encapsulates the object in a HTTP response message, and sends the response message into the TCP connection.
  • 17. Non-Persistent Connections... 4. The HTTP server tells TCP to close the TCP connection. The HTTP client receives the response message. The TCP connection terminates. 5. The message indicates that the encapsulated object is an HTML file. The client extracts the file from the response message, parses the HTML file and finds references to the ten JPEG objects.
  • 18. Non-Persistent Connections... 6. The first four steps are then repeated for each of the referenced JPEG objects.
  • 19. Shortcomings of Non persistent connection 1. A brand new connection must be established and maintained for each requested object. – TCP buffers must be allocated and TCP variables must be kept in both the client and server. 2. Each object suffers two RTTs 3. Each object suffers from TCP slow start because every TCP connection begins with a TCP slow-start phase
  • 20. Persistent Connections • The server leaves the TCP connection open after sending responses. • Subsequent requests and responses between the same client and server can be sent over the same connection.
  • 21. Persistent Connections... • In particular, an entire Web page can be sent over a single persistent TCP connection; • Multiple Web pages residing on the same server can be sent over one persistent TCP connection. • Typically, the HTTP server closes the connection when it isn’t used for a certain time.
  • 22. Persistent Connections... • There are two versions of persistent connections: – without pipelining the client issues a new request only when the previous response has been received. – With pipelining the HTTP client issues a request as soon as it encounters a reference
  • 23. HTTP Message Format • There are two types of HTTP messages, – request messages and – response messages
  • 24. HTTP Request Message • Example GET /somedir/page.html HTTP/1.1 Connection: close User-agent: Mozilla/4.0 Accept: text/html, image/gif, image/jpeg Accept-language:fr
  • 25. HTTP Request Message... • The message is written in ordinary ASCII text • The message consists of five lines, each followed by a carriage return and a line feed. • The last line is followed by an additional carriage return and line feed. • The first line of a HTTP request message is called the request line; • The subsequent lines are called the header lines.
  • 26. HTTP Request Message... • The request line has three fields: the method field, the URL field, and the HTTP version field. • The method field can take on several different values, including GET, POST, and HEAD. • The Connection: close header line, the browser is telling the server that it doesn't want to use persistent connections; • It wants the server to close the connection after sending the requested object.
  • 27. HTTP Request Message... • The User- agent: header line specifies the user agent, • i.e., the browser type that is making the request to the server . Here the user agent is Mozilla/4.0 • The Accept: header line tells the server the type of objects the browser is prepared to accept. • In this case, the client is prepared to accept HTML text, a GIF image or a JPEG image.
  • 28. • The Accept-language: header indicates that the user prefers to receive a French version of the object
  • 29. Format of a HTTP request message
  • 30. HTTP Response Message HTTP/1.1 200 OK Connection: close Date: Thu, 06 Aug 1998 12:00:15 GMT Server: Apache/1.3.0 (Unix) Last-Modified: Mon, 22 Jun 1998 09:23:24 GMT Content-Length: 6821 Content-Type: text/html data data data data data ...
  • 31. HTTP Response Message... • It has three sections: –an initial status line, –six header lines, –the entity body.
  • 32. HTTP Response Message... • The status line has three fields: –the protocol version field, –a status code, –and a corresponding status message.
  • 33. • 200 OK: Request succeeded and the information is returned in the response. • 301 Moved Permanently: Requested object has been permanently moved; new URL is specified in Location: header of the response message. The client software will automatically retrieve the new URL. • 400 Bad Request: A generic error code indicating that the request could not be understood by the server. • 404 Not Found: The requested document does not exist on this server • 505 HTTP Version Not Supported: The request HTTP protocol version is not supported by the server.
  • 34. HTTP Response Message... • The server uses the Connection: close header line to tell the client that it is going to close the TCP connection after sending the message. • The Date: header line indicates the time and date when the HTTP response was created and sent by the server. • It is the time when the server retrieves the object from its file system, inserts the object into the response message and sends the response message.
  • 35. HTTP Response Message... • The Server: header line indicates that the message was generated by an Apache Web server; it is analogous to the User-agent: header line in the HTTP request message. • The Last-Modified: header line indicates the time and date when the object was created or last modified. • The Last-Modified: header, which we cover in more detail below, is critical for object caching, both in the local client and in network cache (a.k.a. proxy) servers. • The Content-Length: header line indicates the number of bytes in the object being sent.
  • 36. HTTP Response Message... • The Content-Type: header line indicates that the object in the entity body is HTML text. (The object type is officially indicated by the Content-Type: header and not by the file extension.)
  • 37. HTTP Response Message... • The Content-Type: header line indicates that the object in the entity body is HTML text. (The object type is officially indicated by the Content-Type: header and not by the file extension.)