0% found this document useful (0 votes)
8 views10 pages

Lecture 7

HTTP (Hypertext Transfer Protocol) is the standard for transferring files over the web, facilitating communication between client devices and servers. It involves sending requests for resources and receiving responses, which may include various HTTP status codes indicating the outcome of the requests. Common status codes include 200 OK, 404 Not Found, and 500 Internal Server Error, each providing information about the request's processing status.

Uploaded by

esha46065
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views10 pages

Lecture 7

HTTP (Hypertext Transfer Protocol) is the standard for transferring files over the web, facilitating communication between client devices and servers. It involves sending requests for resources and receiving responses, which may include various HTTP status codes indicating the outcome of the requests. Common status codes include 200 OK, 404 Not Found, and 500 Internal Server Error, each providing information about the request's processing status.

Uploaded by

esha46065
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 10

Hyper Text Transfer Protocol (HTTP)

HTTP (Hypertext Transfer Protocol) is the set of rules for


transferring files -- such as text, images, sound, video and
other multimedia files -- over the web. As soon as a user
opens their web browser, they are indirectly using HTTP

Through the HTTP protocol, resources are exchanged


between client devices and servers over the internet. Client
devices send requests to servers for the resources needed
to load a web page; the servers send responses back to the
client to fulfill the requests..
Hyper Text Transfer Protocol (HTTP)
HTTP Transaction
HTTP Transaction

Request
We have two type of requests.

1: Simple Request

GET / HTTP / index.html

2: Full Request

GET / HTTP / index.html / 1.1


HTTP Transaction

GET/POST
http://192.168.10.1:80/index.html
HTTP Transaction
HTTP Response
HTTP status codes
In response to HTTP requests, servers often issue response codes, indicating the
request is being processed, there was an error in the request or that the request is
being redirected. Common response codes include:

200 OK. This means that the request, such as GET or POST, worked and is being
acted upon.
300 Moved Permanently. This response code means that the URL of the
requested resource has been changed permanently.
401 Unauthorized. The client, or user making the request of the server, has not
been authenticated.
403 Forbidden. The client's identity is known but has not been given access
authorization.
404 Not Found. This is the most frequent error code. It means that the URL is
not recognized or the resource at the location does not exist.
500 Internal Server Error. The server has encountered a situation it doesn't
know how to handle.
HTTP Header
Types of connections
Types of connections

You might also like