URL
URI URL URN WEB URL URL
- URIUniform Resource Identifier
- URLUniform Resource Locator
- URNUniform Resource Name
1.
2.
HTTP
GET
GET
HEAD
GET
URL
POST
POST GET
POST GET
PUT
PUT /new.html HTTP/1.1Host: example.comContent-type: text/htmlContent-length: 16 < p > New File </<span class="hljs-class">p >
PATCH
PUT PATCH
PATCH /file.txt HTTP/1.1Host: www.example.comContent-Type: application/exampleIf-Match: "e0023aa4e"Content-Length: 100[description of changes]
DELETE
PUT
DELETE /file.html HTTP/1.1
OPTIONS
URL
Allow: GET, POST, HEAD, OPTIONS
CONNECT
SSLSecure Sockets Layer TLSTransport Layer Security
CONNECT www.example.com:443 HTTP/1.1
TRACE
Max-Forwards 1 0
TRACE XST Cross-Site Tracing
HTTP
| | |
---|
1XX | Informational |
2XX | Success |
3XX | Redirection |
4XX | Client Error |
5XX | Server Error |
1XX
2XX
3XX
301 Moved Permanently
302 Found
303 See Other 302 303 GET
HTTP 301302 POST GET 301302 303 POST GET
304 Not Modified If-MatchIf-Modified-SinceIf-None-MatchIf-RangeIf-Unmodified-Since 304
307 Temporary Redirect 302 307 POST GET
4XX
5XX
HTTP
| |
---|
Cache-Control |
Connection |
Date |
Pragma |
Trailer |
Transfer-Encoding |
Upgrade |
Via |
Warning |
| |
---|
Accept |
Accept-Charset |
Accept-Encoding |
Accept-Language |
Authorization | Web |
Expect |
From |
Host |
If-Match | ETag |
If-Modified-Since |
If-None-Match | If-Match |
If-Range | Byte |
If-Unmodified-Since | If-Modified-Since |
Max-Forwards |
Proxy-Authorization |
Range |
Referer | URI |
TE |
User-Agent | HTTP |
| |
---|
Accept-Ranges |
Age |
ETag |
Location | URI |
Proxy-Authenticate |
Retry-After |
Server | HTTP |
Vary |
WWW-Authenticate |
| |
---|
Allow | HTTP |
Content-Encoding |
Content-Language |
Content-Length |
Content-Location | URI |
Content-MD5 |
Content-Range |
Content-Type |
Expires |
Last-Modified |
Cookie
HTTP HTTP HTTP/1.1 Cookie
Cookie Cookie
Cookie Cookie API Web storage API IndexedDB
1.
2.
Set-Cookie Cookie
HTTP/1.0 200 OKContent-type: text/htmlSet-Cookie: yummy_cookie=chocoSet-Cookie: tasty_cookie=strawberry[page content]
Cookie Cookie
GET /sample_page.html HTTP/1.1Host: www.example.orgCookie: yummy_cookie=choco; tasty_cookie=strawberry
3.
- Cookie
- CookieExpiresmax-age Cookie
Set-Cookie: id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT;
4. JavaScript Cookie
Document.cookie
Cookie HttpOnly Cookie
document.cookie = "yummy_cookie=choco";document.cookie = "tasty_cookie=strawberry";console.log(document.cookie);
5. Secure HttpOnly
Secure Cookie HTTPS Secure Cookie Cookie Secure
HttpOnly Cookie JavaScript (XSS) JavaScript Document.cookie
API Cookie HttpOnly XSS
Set-Cookie: id=a3fWa; Expires=Wed, 21 Oct 2015 07:28:00 GMT; Secure; HttpOnly
6.
Domain Cookie Domain Domain=mozilla.org Cookie developer.mozilla.org
Path Cookie URL URL %x2F ("/") Path=/docs
- /docs
- /docs/Web/
- /docs/Web/HTTP
7. Session
Cookie Session
Session Session Redis
Session
- HTTP
- Redis Redis Key Session ID
- Set-Cookie Session ID Cookie
- Cookie Session ID Redis
Session ID Session ID Session ID Session
8. Cookie
Cookie Session Session ID Cookie URL Session ID URL
9. Cookie Session
- Cookie ASCII Session Session
- Cookie Cookie Cookie
- Session Session
1.
2.
3. Cache-Control
HTTP/1.1 Cache-Control
no-store
Cache-Control: no-store
no-cache
Cache-Control: no-cache
private
Cache-Control: private
public
Cache-Control: public
max-age
max-age
Cache-Control: max-age=31536000
Expires
- HTTP/1.1 max-age
- HTTP/1.0 max-age
Expires: Wed, 04 Jul 2012 08:26:05 GMT
4.
ETag URL http://www.google.com/
ETag
ETag: "82e22293907ce725faf67773957acd12"
ETag If-None-Match ETag ETag 304 Not Modified
If-None-Match: "82e22293907ce725faf67773957acd12"
Last-Modified ETag If-Modified-Since 200 OK 304 Not Modified
Last-Modified: Wed, 21 Oct 2015 07:28:00 GMT
If-Modified-Since: Wed, 21 Oct 2015 07:28:00 GMT