{% extends "sega.html" %} {% block title %}ALL.Net{% endblock %} {% block body %}

# ALL.Net

A simple service that exposes two URLs. The hostname must be `http://naominet.jp`.

Requests should be made with a number of standard HTTP headers, and must be either HTTP version 1.0 or 1.1

`Connection` | `Close`
`Pragma` | `DFI`
`User-Agent` | `ALL.Net_PC_Win2/ver1.0`
`Content-Type` | `application/x-www-form-urlencoded`
`Content-Length` | variable

Note that the `Pragma` header is optional, and the `Content-Type` header is a lie.

Requests and responses should be `POST`s, and their body should be base64 encoded, zlib compressed, `x-www-form-urlencoded` data. For example, `{key: "value", other: "another"}` should encode to `eJwdxcEJACAMA8Bt3CLD5BEQFIXSFtw+4OuWHpq7NG5OBXi+BmwzCRo=`.

Responses are expected to contain `stat` indicating status:

`1` | Success
`0` | Failure
`-1` | Failure
`-2` | Failure
`-3` | Failure

This service provides two endpoints, documented below:

### `/sys/servlet/PowerOn`

#### Request:

`game_id` | 4-character game ID
`ver` |
`serial` |
`ip` |
`firm_ver` | `%01d%02d%02d`
`boot_ver` | `%02X%02X`
`format_ver` |
`hops` |
`encode` |

#### Response:

`stat` | See above
`uri` |
`host` |
`region0` |
`region_name0` |
`region_name1` |
`region_name2` |
`region_name3` |
`year` |
`month` |
`day` |
`hour` |
`minute` |
`second` |
`place_id` |
`setting` |
`country` |
`timezone` |
`res_class` |

### `/sys/servlet/DownloadOrder`

{% endblock %}