Get Started. It's Free
or sign up with your email address
HTTP by Mind Map: HTTP

1. Request

1.1. Request Line

1.1.1. Method

1.1.2. Resource

1.1.3. Protocol

1.1.4. ej: GET /foo.html HTTP/1.1

1.2. Headers

1.2.1. Host www.example.com

1.2.1.1. Obligatory

1.2.2. Accept: */*

1.2.3. Cookie: key=value; foo=bar;

1.2.4. Accept-Encoding: gzip,deflate

1.2.5. User-Agent: Mozilla/5.0 (X11)

1.2.5.1. 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

1.2.6. Accept-Language: es-AR, en-US

1.3. Message Body

1.3.1. Optional, mostly used in POST & PUT

2. Methods

2.1. GET

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

2.2. POST

2.2.1. 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.

2.2.1.1. This may result in the creation of a new resource or the updates of existing resources or both.

2.3. PUT

2.3.1. Uploads a representation of the specified resource.

2.4. DELETE

2.4.1. Deletes the specified resource.

2.5. HEAD

2.5.1. Same as GET but only retrieves headers information

3. REST

3.1. Representational State Transfer

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

4. Response

4.1. Status Line

4.1.1. Protocol

4.1.2. Status Code

4.1.2.1. 1xx - Informational

4.1.2.2. 2xx - Success

4.1.2.3. 3xx - Redirection

4.1.2.4. 4xx - Client Error

4.1.2.5. 5xx - Server Error

4.1.3. Reason Phrase

4.1.4. ej: HTTP/1.1 404 Not Found

4.2. Headers

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

4.2.2. Server: Apache/2.2.14 (Ubuntu)

4.2.3. Content-Encoding:gzip

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

4.2.5. Content-Length: 306

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

4.2.7. Cache-Control: max-age

4.2.8. X-Runtime: 45

4.3. Body

4.3.1. <html> <head></head> <body></body> </html>

5. Cookies

5.1. Stored In Browser

5.1.1. javascript: document.cookie

5.1.2. Max ~4kb

5.1.3. Max ~300 cookies

5.2. Formato

5.2.1. key=value

5.2.2. Expiration

5.2.2.1. Sesion

5.2.2.2. Fecha

5.2.2.2.1. expires=Fri, 31-Dec-2010 23:59:59 GMT

5.2.3. Path

5.2.3.1. path=/

5.2.3.2. Indica para que URLs se usa

5.2.3.2.1. todo lo que empiece con bajo ese path

5.2.4. Domain

5.2.4.1. domain=.example.com

5.2.4.2. Indica para que dominios se usa

5.2.4.2.1. el caso de .example.com es para todos los subdominios de example.com

5.2.5. Secure

5.2.5.1. secure=true

5.2.5.2. Indica si se usa solo para conexiones seguras (SSL, TLS, HTTPS)

5.3. Envio

5.3.1. Request

5.3.1.1. Header Cookie: key=value; foo=bar;

5.3.2. Response

5.3.2.1. Header Set-Cookie: key=value; [metadata]; foo=bar;

5.4. Expiry

5.4.1. End of session

5.4.2. Expiration Date passed

5.4.3. Expiration date is changed to the past

5.4.4. Browser deletes it by request

5.5. Uses

5.5.1. Session management

5.5.1.1. session_id

5.5.2. Personalization

5.5.2.1. Ej: amazon

5.5.2.2. Session

5.5.2.3. Data en la cookie

5.5.3. Tracking

5.5.3.1. Ej: google analytics

5.5.4. First-Party

5.5.5. Third-Party