Skip to content

Instantly share code, notes, and snippets.

@hendricius
Last active August 29, 2015 13:57
Show Gist options
  • Save hendricius/9914004 to your computer and use it in GitHub Desktop.
Save hendricius/9914004 to your computer and use it in GitHub Desktop.
Site verification example

Request:

https://www.googleapis.com/siteVerification/v1/token?fields=token&key={{my_key}}

Headers:

access-control-allow-origin →chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm
access-control-expose-headers →Content-Encoding,Content-Length,Content-Type,Date,Server,WWW-Authenticate
alternate-protocol →443:quic
cache-control →private, max-age=0
content-encoding →gzip
content-length →136
content-type →application/json; charset=UTF-8
date →Tue, 01 Apr 2014 13:28:01 GMT
expires →Tue, 01 Apr 2014 13:28:01 GMT
server →GSE
status →401 Unauthorized
vary →Origin
version →HTTP/1.1
www-authenticate →Bearer realm="https://accounts.google.com/AuthSubRequest"
x-content-type-options →nosniff
x-frame-options →SAMEORIGIN
x-xss-protection →1; mode=block

Response:

{
  "error": {
    "errors": [
      {
      "domain": "global",
      "reason": "required",
      "message": "Login Required",
      "locationType": "header",
      "location": "Authorization"
    }
    ],
    "code": 401,
    "message": "Login Required"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment