HTTP

HyperText Transfer Protocol

 

 

Amanpreet Singh- 12115016

WHAT?

Rules governing between Web Client and Web Server

Language of Web

Client, Server? What the heck?

Protocol

Set of rules governing a conversation between machine and server

 

HTTP is just one of the many protocols

Ports

HTTP uses port 80

HTTPS uses port 443 (Secure)

A HTTP Conversation

HTTP Methods

GET

Requests data from a specified resource

 

 POST

Submits data to be processed to a specified resource

Example

GET /twitter/api/tweets.json?param=value

Packets

Sent from client to server

Consists of HTTP header that identifies a requests and a url. 

Status Codes

Identifies what happened of a request

200 - OK

301 - Moved Permanently

302 - Moved Temporarily

401 - Unauthorized

403 - Forbidden

404 - Not found

500 - Internal Server Error

There are many others...

HTTP is Stateless

Each request is independent of any other previous request.

 

Hackers/Attackers exploit this

HTTPS

1. More secure

2. Encrypted

3. HTTP is easily sniffable

4. Always try to use HTTPS

Thank you!

Made with Slides.com