Some details info
[ouya-store-api.git] / headers.rst
1 =====================
2 Standard HTTP headers
3 =====================
4
5 The following HTTP headers are sent with nearly every HTTP request
6 from the OUYA console to the servers.
7
8 ``Accept-Encoding``
9   ``gzip``
10
11   The OUYA understands gzip compression
12 ``Accept-Language``
13   ``en-US,en``
14 ``User-Agent``
15   ``OUYA 0 1.00 1.2.1427_r1``
16 ``X-OUYA-AuthToken``
17   ``96bfeaae-212d-447b-b4bf-caa5e86c0502``
18
19   Authentication token one got from logging in.
20
21   Only sent when logged in.
22 ``X-OUYA-Console-Id``
23   ``015d4b33bc64141b``
24
25   Serial number you see when running ``$ adb devices``
26 ``X-OUYA-Console-Wifi-MAC-Address``
27   ``B8:5A:F7:82:3C:C8``
28 ``X-OUYA-Device``
29   ``ouya_1_1``
30
31   Probably hardware revision
32 ``X-OUYA-Firmware-Version``
33   ``1.2.1427_r1``
34 ``X-OUYA-VersionCode``
35   ``16``
36 ``X-Token``
37   ``96bfeaae-212d-447b-b4bf-caa5e86c0502``
38
39   Only sent when logged in.
40
41   Same as ``X-OUYA-AuthToken``.
42
43   FIXME: Why two token headers?
44
45   FIXME: Why ``auth_token`` GET parameter when there are headers?
46
47
48 Headers to ignore
49 =================
50 ``Cookie``
51   ``__cfduid=da019d762142461c19f162c0ee443f9c71434577887``
52
53   Comes from the cloudflare error page. Can be ignored.
54 ``Cookie2``
55   ``$Version=1``
56
57   ??? FIXME
58
59   Not on the cloudflare error page.