Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active May 23, 2016 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jansanchez/4ff7c91274bcd488f7bb60cbe38de68e to your computer and use it in GitHub Desktop.
Save jansanchez/4ff7c91274bcd488f7bb60cbe38de68e to your computer and use it in GitHub Desktop.

Petición: GET

curl -I https://api.github.com/ --head

Respuesta:

HTTP/1.1 200 OK
Server: GitHub.com
Date: Mon, 23 May 2016 19:25:33 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 2064
Status: 200 OK
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-RateLimit-Reset: 1464035133
Cache-Control: public, max-age=60, s-maxage=60
Vary: Accept
ETag: "d251d84fc3f78921c16c7f9c99d74eae"
X-GitHub-Media-Type: github.v3
Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
Access-Control-Allow-Origin: *
Content-Security-Policy: default-src 'none'
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
Vary: Accept-Encoding
X-Served-By: 2c18a09f3ac5e4dd1e004af7c5a94769
X-GitHub-Request-Id: C9EA7DFD:1C0C5:109B75FB:5743592C

Petición: GET con ETag

curl -I https://api.github.com/ --header 'If-None-Match: "d251d84fc3f78921c16c7f9c99d74eae"'

Respuesta:

HTTP/1.1 304 Not Modified
Server: GitHub.com
Date: Mon, 23 May 2016 19:26:08 GMT
Status: 304 Not Modified
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 51
X-RateLimit-Reset: 1464034822
Cache-Control: public, max-age=60, s-maxage=60
Vary: Accept
ETag: "d251d84fc3f78921c16c7f9c99d74eae"
Access-Control-Expose-Headers: ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
Access-Control-Allow-Origin: *
Content-Security-Policy: default-src 'none'
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
Vary: Accept-Encoding
X-Served-By: d594a23ec74671eba905bf91ef329026
X-GitHub-Request-Id: C804C70C:12718:AD112AB:57435950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment