Jump to navigation Jump to search
1,077 bytes added ,  23:11, 3 October 2021
'''NUS''' (short for '''Nintendo Update Server''') is a set of HTTP servers used to serve [[System Update|updates ]] for Nintendo's consoles. For the Wii and Wii U, this server is located at
== Protocol ==
The Wii uses user agent <code>wii libnup/1.0</code> for all requests.
=== Query a list of titles ===To query a list of titles, a SOAP request is sent to /nus/services/NetUpdateSOAP, with action The result is an XML structure containing all titlesthat require updating.
=== Download a TMD Request structure ===A TMD for a given title can be downloaded from /ccs/download/<titleid>/tmd[version]'''GetSystemUpdateRequest''''''Version''' - always 1.0?:'''MessageId''' - unknown:'''DeviceId''' - unknown:'''RegionId''' - USA, JAP, EUR, where titleid is the or KOR:'''CountryCode''' - unknown:Several '''TitleVersion''' structs:::'''TitleId''' - 16-digit title ID in hex, and omitting the ::'''Version''' - decimal version uses the latest version.:'''Attribute''' - unknown:'''AuditData''' - unknown
=== Download a ticket Response structure ===A title's ticket can be downloaded ''GetSystemUpdateResponse''''''Version''' - same as version in request?:'''MessageId''' - same as MessageId from client:'''DeviceId''' - same as DeviceId from client:'''ErrorCode''' - 0 on success:'''ContentPrefixURL''' - always before [[2.0rev03]]):'''UncachedPrefixURL''' - always http://<titleid> (HTTP before 2.0rev03, where titleid this is the URL the Wii uses):Several '''TitleVersion''' structs:::'''TitleId''' - 16-digit title ID in hex.::'''Version''' - latest title version available::'''FsSize''' - size in bytes?:'''UploadAuditData''' - unknown, possibly boolean?
=== Downloading contents =Download a TMD, ticket, or content ==Any content These can be downloaded with a request to /ccs/downloadfrom <prefix>/<titleid>/<contentidname>, where prefix is the base URL returned from the SOAP request, titleid is the title ID in hex, and contentid name is one of three things:* tmd[version] - downloads the TMD for the version provided, or the latest version if no version is provided* cetk - downloads the ticket (free titles only)* <contentid> - downloads a specific content ID in hex. [[Category:Online services]]

Navigation menu