Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

HTTP by Mind Map: HTTP
3.0 stars - 1 reviews range from 0 to 5

HTTP

Request

Request Line

Method

Resource

Protocol

ej: GET /foo.html HTTP/1.1

Headers

Host www.example.com, Obligatory

Accept: */*

Cookie: key=value; foo=bar;

Accept-Encoding: gzip,deflate

User-Agent: Mozilla/5.0 (X11), Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Ubuntu/10.04 Chromium/9.0.597.19 Chrome/9.0.597.19 Safari/534.13

Accept-Language: es-AR, en-US

Message Body

Optional, mostly used in POST & PUT

Response

Status Line

Protocol

Status Code, 1xx - Informational, 2xx - Success, 3xx - Redirection, 4xx - Client Error, 5xx - Server Error

Reason Phrase

ej: HTTP/1.1 404 Not Found

Headers

Date: Fri, 31 Dic 2010 22:38:34 GMT

Server: Apache/2.2.14 (Ubuntu)

Content-Encoding:gzip

Content-Type: text/html; charset=utf-8

Content-Length: 306

Set-Cookie:lang=en; session=123;

Cache-Control: max-age

X-Runtime: 45

Body

<html> <head></head> <body></body> </html>

Cookies

Stored In Browser

javascript: document.cookie

Max ~4kb

Max ~300 cookies

Formato

key=value

Expiration, Sesion, Fecha, expires=Fri, 31-Dec-2010 23:59:59 GMT

Path, path=/, Indica para que URLs se usa, todo lo que empiece con bajo ese path

Domain, domain=.example.com, Indica para que dominios se usa, el caso de .example.com es para todos los subdominios de example.com

Secure, secure=true, Indica si se usa solo para conexiones seguras (SSL, TLS, HTTPS)

Envio

Request, Header Cookie: key=value; foo=bar;

Response, Header Set-Cookie: key=value; [metadata]; foo=bar;

Expiry

End of session

Expiration Date passed

Expiration date is changed to the past

Browser deletes it by request

Uses

Session management, session_id

Personalization, Ej: amazon, Session, Data en la cookie

Tracking, Ej: google analytics

First-Party

Third-Party

Methods

GET

Requests a representation of the specified resource. SHOULD NOT have the significance of taking an action other than retrieval

POST

Submits data to be processed (e.g., from an HTML form) to the identified resource. The data is included in the body of the request., This may result in the creation of a new resource or the updates of existing resources or both.

PUT

Uploads a representation of the specified resource.

DELETE

Deletes the specified resource.

HEAD

Same as GET but only retrieves headers information

REST

Representational State Transfer

http://en.wikipedia.org/wiki/Representational_State_Transfer