Skip to content

Instantly share code, notes, and snippets.

@micolous
Created January 21, 2012 07:01
Show Gist options
  • Save micolous/1651841 to your computer and use it in GitHub Desktop.
Save micolous/1651841 to your computer and use it in GitHub Desktop.
POST /loc/json HTTP/1.1
Accept-Encoding: identity
Content-Length: 148
Host: www.google.com
Content-Type: application/x-www-form-urlencoded
Connection: close
User-Agent: Python-urllib/2.6
{"request_address": true, "version": "1.1.0", "wifi_towers": [{"signal_strength": 1, "mac_address": "00-88-88-88-00-2B"}], "address_language": "en"}
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Date: Sat, 21 Jan 2012 06:59:33 GMT
Expires: Sat, 21 Jan 2012 06:59:33 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Connection: close
{"location":{"latitude":-34.928621,"longitude":138.599959,"address":{"country":"Australia","country_code":"AU","region":"South Australia","city":"Adelaide","street":"Victoria Square","street_number":"233","postal_code":"5000"},"accuracy":18000.0},"access_token":"2:F7b1OJin-4wb09GT:28_sCVjnWj94BndU"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment