TIL that my Sony Android TV is running nginx:
```
$ curl -i 192.168.0.3
HTTP/1.1 302 Moved Temporarily
Server: nginx
Date: Tue, 11 Aug 2020 20:01:16 GMT
Content-Type: text/html
Content-Length: 154
Connection: keep-alive
Location: http://192.168.0.3:10000/contentshare/WebApp/index.html
302 Found
```
Neato, I wouldn’t have thought.
Here are some additional, different responses on my new Sony TV. I then found github on the command structure. [https://gist.github.com/kalleth/e10e8f3b8b7cb1bac21463b0073a65fb#file-sony\_bravia-md](https://gist.github.com/kalleth/e10e8f3b8b7cb1bac21463b0073a65fb#file-sony_bravia-md)
$ curl -i 192.168.4.124
HTTP/1.1 404 Not Found
Server: nginx
Date: Fri, 04 Mar 2022 04:28:00 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive
404 Not Found
$ curl -i 192.168.4.124/sony/
HTTP/1.1 404 Not Found
Server: nginx
Date: Fri, 04 Mar 2022 04:27:48 GMT
Content-Type: application/json
Content-Length: 27
Connection: keep-alive
Access-Control-Allow-Credentials: true
{“error”:[404,”Not Found”]}
curl -H “Content-Type: application/json” -X POST -d ‘{“id”: 20, “method”: “getMethodTypes”, “version”: “1.0”, “params”: [“”]}’ -i 192.168.4.124/sony/system
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2653
Connection: keep-alive
{“results”:[[“getCurrentTime”,[],[“string”],”1.0″],[“getDeviceMode”,[“{\”value\”:\”string\”}”],[“{\”isOn\”:\”bool\”}”],”1.0″],[“getInterfaceInformation”,[],[“{\”productCategory\”:\”string\”, \”productName\”:\”string\”, \”modelName\”:\”string\”, \”serverName\”:\”string\”, \”interfaceVersion\”:\”string\”}”],”1.0″],[“getLEDIndicatorStatus”,[],[“{\”mode\”:\”string\”, \”status\”:\”string\”}”],”1.0″],[“getNetworkSettings”,[“{\”netif\”:\”string\”}”],[“{\”netif\”:\”string\”, \”hwAddr\”:\”string\”, \”ipAddrV4\”:\”string\”, \”ipAddrV6\”:\”string\”, \”netmask\”:\”string\”, \”gateway\”:\”string\”, \”dns\”:\”string*\”}*”],”1.0″],[“getPowerSavingMode”,[],[“{\”mode\”:\”string\”}”],”1.0″],[“getPowerStatus”,[],[“{\”status\”:\”string\”}”],”1.0″],[“getRemoteControllerInfo”,[],[“{\”bundled\”:\”bool\”, \”type\”:\”string\”}”,”{\”name\”:\”string\”, \”value\”:\”string\”}*”],”1.0″],[“getRemoteDeviceSettings”,[“{\”target\”:\”string\”}”],[“{\”target\”:\”string\”, \”currentValue\”:\”string\”, \”deviceUIInfo\”:\”string\”, \”title\”:\”string\”, \”titleTextID\”:\”string\”, \”type\”:\”string\”, \”isAvailable\”:\”bool\”, \”candidate\”:\”GeneralSettingsCandidate[]\”}*”],”1.0″],[“getSystemInformation”,[],[“{\”product\”:\”string\”, \”region\”:\”string\”, \”language\”:\”string\”, \”model\”:\”string\”, \”serial\”:\”string\”, \”macAddr\”:\”string\”, \”name\”:\”string\”, \”generation\”:\”string\”, \”area\”:\”string\”, \”cid\”:\”string\”}”],”1.0″],[“getSystemSupportedFunction”,[],[“{\”option\”:\”string\”, \”value\”:\”string\”}*”],”1.0″],[“getWolMode”,[],[“{\”enabled\”:\”bool\”}”],”1.0″],[“mountStorage”,[“{\”uri\”:\”string\”}”],[],”1.0″],[“requestReboot”,[],[],”1.0″],[“setDeviceMode”,[“{\”value\”:\”string\”, \”isOn\”:\”bool\”}”],[],”1.0″],[“setLanguage”,[“{\”language\”:\”string\”}”],[],”1.0″],[“setPowerSavingMode”,[“{\”mode\”:\”string\”}”],[],”1.0″],[“setPowerStatus”,[“{\”status\”:\”bool\”}”],[],”1.0″],[“setWolMode”,[“{\”enabled\”:\”bool\”}”],[],”1.0″],[“getMethodTypes”,[“string”],[“string”,”string*”,”string*”,”string”],”1.0″],[“getVersions”,[],[“string*”],”1.0″],[“getCurrentTime”,[],[“{\”dateTime\”:\”string\”, \”timeZoneOffsetMinute\”:\”int\”, \”dstOffsetMinute\”:\”int\”}”],”1.1″],[“getStorageList”,[“{\”uri\”:\”string\”}”],[“{\”uri\”:\”string\”, \”deviceName\”:\”string\”, \”volumeLabel\”:\”string\”, \”permission\”:\”string\”, \”position\”:\”string\”, \”formattable\”:\”string\”, \”mounted\”:\”string\”, \”wholeCapacityMB\”:\”int\”, \”freeCapacityMB\”:\”int\”, \”systemAreaCapacityMB\”:\”int\”, \”formatting\”:\”string\”, \”isAvailable\”:\”string\”}*”],”1.1″],[“setLEDIndicatorStatus”,[“{\”mode\”:\”string\”, \”status\”:\”string\”}”],[],”1.1″]],”id”:20}